How NOT to figure out a nameserver
So I was trying to install this piece of software that I wanted to test ..
It came with a weird installscript that kept telling me it couldn't ping tom my nameserver
.. checking network access via ping to DNS/IP: IN ...... unable to ping: IN : ping returned: 2 unable to ping DNS name server: IN 192.168.1.209 : ping returned code: 2
Now why would it tro to ping IN ?
This is why .. the scripts tries to find out my nameserver using dig
root@C51 ~]# dig localhost | grep SERVER | cut -d# -f 1| awk '{print $3}' IN 192.168.1.209
It didn't expect to get this feedback from dig
[root@C51 ~]# dig localhost ; <<>> DiG 9.3.3rc2 <<>> localhost ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 32043 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;localhost. IN A ;; AUTHORITY SECTION: . 10215 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2008031700 1800 900 604800 86400 ;; Query time: 7 msec ;; SERVER: 192.168.1.209#53(192.168.1.209) ;; WHEN: Mon Mar 17 21:02:50 2008 ;; MSG SIZE rcvd: 102