I have a list of addresses I need to perform a DNS lookup for. What I need to know is the authoritative server for the domain, and the result of the lookup (A record with IP or CNAME with host).
I tried: dig www.google.co.uk .. and it's not showing me the authoritative servers. So I tried: dig www.google.co.uk +nssearch .. and got a blank response.
Suggestions?
Background: I have a webserver which will shortly be changing it's IP address. It has a local DNS which will be updated as part of the migration so anything which uses that server for authoritative DNS will be updated automatically. However anything on an external DNS may need updating, depending on whether it references the server by CNAME or A record (and if CNAME I need to check that whatever that is gets updated too). So I need to know which addresses still point at the server, and of those which are not in the local DNS and of those which need updating (and where).
I use "set type=soa" within nslookup (although I'm at a windows box right now I think this works the same on Linux). I think the best you will find is the responsible name servers for Google's DNS domain. As to which one is the authoritative name server, I would presume this is up to Google and not really obtainable in any DNS search results? But I am guessing!
set type=soa www.google.co.uk
Server: [192.168.1.254] Address: 192.168.1.254
Non-authoritative answer: www.google.co.uk canonical name = www.google.com www.google.com canonical name = www.l.google.com www.l.google.com canonical name = www-tmmdi.l.google.com
l.google.com primary name server = ns4.google.com responsible mail addr = dns-admin.google.com serial = 1404374 refresh = 900 (15 mins) retry = 900 (15 mins) expire = 1800 (30 mins) default TTL = 60 (1 min)