Resolution failures
Code: Select all
root@sinister:~# ping -w1 google.com
PING google.com (74.125.73.104) 56(84) bytes of data.
64 bytes from tul01m01-in-f104.1e100.net (74.125.73.104): icmp_req=1 ttl=48 time=22.4 ms
--- google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 22.499/22.499/22.499/0.000 ms
root@sinister:~# wget google.com
--2011-08-14 22:20:37-- http://google.com/
Resolving google.com... failed: Name or service not known.
wget: unable to resolve host address “google.com”
Code: Select all
; <<>> DiG 9.7.3 <<>> google.com @192.168.7.254
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2891
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;google.com. IN A
;; ANSWER SECTION:
google.com. 193 IN A 74.125.73.106
google.com. 193 IN A 74.125.73.105
google.com. 193 IN A 74.125.73.147
google.com. 193 IN A 74.125.73.104
google.com. 193 IN A 74.125.73.99
google.com. 193 IN A 74.125.73.103
;; Query time: 76 msec
;; SERVER: 192.168.7.254#53(192.168.7.254)
;; WHEN: Sun Aug 14 22:19:14 2011
;; MSG SIZE rcvd: 124
Code: Select all
root@sinister:~# cat /etc/resolv.conf
nameserver 192.168.7.254
Code: Select all
root@sinister:~# 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
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis