How to check DNS records on a specific DNS server using dig and linux
Sometimes it may be necessary to get DNS records from a DNS server even if the domain is already pointed at a different DNS server. One tool you can use under linux is called dig. You can use dig to query any DNS server you specify (or use the default nameservers) and get all DNS records from that server. I recently had to do this to help out a customer after they moved their site to our servers and they realized they forgot something on the old server. Problem was, they weren’t sure who the old site was hosted with or what the old IP was. In a matter of minutes I was able to query the old DNS servers and pull up all the DNS information.
Here’s how to use it… (more…)