I’m looking to verify domain ownership via a script, specifically a Python script, and would like know how to lookup the value of a DNS TXT entry. I know there are services and websites out there for this, but I would like to do it with a script.
I’m looking to verify domain ownership via a script, specifically a Python script, and
Share
This is easy using dnspython. Here is an example:
This gives the following output:
Another option is to use
digin subprocess: