I am having an error with name resolution that I am not able to figure out.
The system is able to resolve names, say, www.google.com when using a graphical browser like chrome or firefox. But on the command line it is not able to (unless I add the domain in /etc/hosts). This extends to all operations on the command line like ping and others. We have a proxy in this environment and the proxy information is set using environment variables.
ETA:
I noticed that it does seem to resolve IP addresses but it is still not able to reach them. This makes it even more perplexing.
farhat@farhat:~$ traceroute www.google.com
traceroute to www.google.com (209.85.153.104), 30 hops max, 60 byte packets
1 192.168.4.1 (192.168.4.1) 0.496 ms 1.033 ms 1.294 ms
2 210.212.187.65 (210.212.187.65) 0.872 ms 0.942 ms 0.930 ms
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
farhat@farhat:~$ ping www.google.com
PING www.l.google.com (209.85.153.104) 56(84) bytes of data.
^C
--- www.l.google.com ping statistics ---
100 packets transmitted, 0 received, 100% packet loss, time 99131ms
pinging www.google.com fails.
$ cat /etc/resolv.conf nameserver 192.168.1.131 nameserver 208.67.222.222 nameserver 208.67.220.220 nameserver 192.168.1.130 nameserver 218.248.240.23 nameserver 218.248.240.134 nameserver 218.248.240.208 nameserver 218.248.240.135– Farhat Mar 23 '11 at 15:58farhat@farhat:~/Dropbox/projects/huhida$ cat /etc/nsswitch.conf # /etc/nsswitch.conf # # 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– Farhat Mar 23 '11 at 16:02