Code:
$ nslookup office
Server: 209.18.47.61
Address: 209.18.47.61#53
Non-authoritative answer:
Name: office
Address: 204.232.137.207
Code:
$ dig office
; <<>> DiG 9.7.0-P1 <<>> office
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52234
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;office. IN A
;; ANSWER SECTION:
office. 10 IN A 204.232.137.207
;; Query time: 27 msec
;; SERVER: 209.18.47.61#53(209.18.47.61)
;; WHEN: Sat Sep 17 19:25:46 2011
;; MSG SIZE rcvd: 40
Yeah, something's definitely looking not right there. The local network is on 192.168.0 with a netmask of 255.255.255.0. Even my external IP address is entirely different (174.101.237.81, currently). It might be worth adding that "ping office" goes to 204.232.137.207 (100% loss) - the same as nslookup gives for the non-authoritative address.
Here are the two requested files' contents:
Code:
$ cat /etc/resolv.conf
nameserver 209.18.47.61
Code:
$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 wins
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
I tried changing resolv.conf to "nameserver 192.168.0.1" (the router/gateway), but that only served to change the commands' server address for "office" to that IP address instead of the one above.