0

I have this dedicated server with CentOS 6, WHM. Server is responding extremely slow. Resource usage less than 10%. While trying to troubleshoot, i found that i can not using ping command

here is what i get

root@power [/tmp]# curl -v google.com
* getaddrinfo(3) failed for google.com:80
* Couldn't resolve host 'google.com'
* Closing connection #0
curl: (6) Couldn't resolve host 'google.com'

=========== Here is the top output

top - 13:38:42 up 3 days,  7:51,  1 user,  load average: 0.27, 0.26, 0.25 
Tasks: 264 total,   1 running, 261 sleeping,   0 stopped,   2 zombie 
Cpu(s):  1.5%us,  0.2%sy,  0.0%ni, 97.8%id,  0.3%wa,  0.0%hi, 0.1%si,  0.0%st 
Mem:  32837836k total, 26601760k used,  6236076k free,   238304k buffers 
Swap: 16515068k total,    15664k used, 16499404k free, 23405328k cached

Any help? Sorry for my poor english in advance

Edit: Added these outputs This is the resolv.conf file

search com
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 208.67.222.222

root@power [/tmp]# ping www.google.com
ping: unknown host www.google.com

root@power [/tmp]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
64 bytes from 8.8.8.8: icmp_seq=5 ttl=59 time=0.734 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=59 time=0.719 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=59 time=0.606 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=59 time=0.686 ms
64 bytes from 8.8.8.8: icmp_seq=9 ttl=59 time=0.661 ms
64 bytes from 8.8.8.8: icmp_seq=10 ttl=59 time=0.665 ms


root@power [/tmp]# nslookup www.google.com
Server:         208.67.222.222
Address:        208.67.222.222#53

Non-authoritative answer:
Name:   www.google.com
Address: 74.125.227.243
Name:   www.google.com
Address: 74.125.227.240
Name:   www.google.com
Address: 74.125.227.244
Name:   www.google.com
Address: 74.125.227.242
Name:   www.google.com
Address: 74.125.227.241


root@power [/tmp]# dig @8.8.8.8 www.google.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.37.rc1.el6_7.2 <<>> @8.8.8.8 www.google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29195
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.google.com.                        IN      A

;; ANSWER SECTION:
www.google.com.         299     IN      A       74.125.227.244
www.google.com.         299     IN      A       74.125.227.241
www.google.com.         299     IN      A       74.125.227.243
www.google.com.         299     IN      A       74.125.227.240
www.google.com.         299     IN      A       74.125.227.242

;; Query time: 26 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sun Aug  9 14:54:35 2015
;; MSG SIZE  rcvd: 112
2
  • Is the port 53 UDP (DNS resolve) open to the outside on firewall?
    – Anatoly
    Aug 9, 2015 at 19:23
  • Firewall was installed but i disabled it before starting the troubleshooting process
    – Next Gen
    Aug 9, 2015 at 19:44

1 Answer 1

0

Sounds like a DNS issue. Verify /etc/resolv.conf is configured correctly. Verify you are able to reach the name servers you have defined (using nslookup and ping).

Also, make sure you are able to reach the internet at all. You can ping one of Google's DNS servers to verify:

ping 8.8.8.8
2
  • Hi,Thanks for the reply, this is what i get when i ping ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted 64 bytes from 8.8.8.8: icmp_seq=5 ttl=59 time=0.734 ms 64 bytes from 8.8.8.8: icmp_seq=6 ttl=59 time=0.719 ms 64 bytes from 8.8.8.8: icmp_seq=7 ttl=59 time=0.606 ms 64 bytes from 8.8.8.8: icmp_seq=8 ttl=59 time=0.686 ms 64 bytes from 8.8.8.8: icmp_seq=9 ttl=59 time=0.661 ms
    – Next Gen
    Aug 9, 2015 at 19:42
  • This is what resolve.conf looks like at this server search com # Generated by NetworkManager nameserver 8.8.8.8 nameserver 8.8.4.4 nameserver 208.67.222.222
    – Next Gen
    Aug 9, 2015 at 19:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .