On my centos I have a problem.
I cannot:
[root@server]# telnet www.google.com 80
telnet: www.google.com: Name or service not known
www.google.com: Unknown server error
[root@server]#
However I can dig google.com
[root@server]# dig www.google.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.3 <<>> www.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 42872
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;www.google.com. IN A
;; Query time: 0 msec
;; SERVER: 180.188.196.76#53(180.188.196.76)
;; WHEN: Mon Oct 15 20:15:21 2012
;; MSG SIZE rcvd: 32
[root@server] #
My resolv.conf is
# Automatically generated by OnApp (2.3.2)
domain com
nameserver 180.188.196.76
nameserver 8.8.4.4
nameserver 8.8.8.8