dnsdig

Using dig to search for SPF records


I am using dig installed on my machine to search for SPF records for a particular domain. Is there a way to search a particular DNS server for the SPF records?

For example, will the following work?

dig domain.example txt host ns1.nameserver1.example

dig domain.example txt host ns2.nameserver2.example

Solution

  • I believe that I found the correct answer through this dig How To. I was able to look up the SPF records on a specific DNS, by using the following query:

    dig @ns1.nameserver1.example domain.example txt