Using dig to search for SPF records

bjtilley picture bjtilley · Nov 3, 2010 · Viewed 123.5k times · Source

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.com txt host ns1.nameserver1.com

dig domain.com txt host ns2.nameserver2.com

Answer

bjtilley picture bjtilley · Nov 3, 2010

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.com domain.com txt