Canot ping from WHM server
Hello,
when i do
ping gmail.com
ping: unknown host gmail.com
root@host1 [~]# ping cpanel.net
ping: unknown host cpanel.net
when sending emails it says like: "Previous Message: ****: == *@sina.com R=lookuphost defer (-1): host lookup did not complete"
the /etc/resolv.conf contains
nameserver 8.8.8.8
nameserver 8.8.4.4
please what to do?
-
[COLOR="#008000">SOLVED The google nameservers IPs (mentioned above) somehow went into iptables to be blocked, not sure how...... but after removed their IPs from iptables, ping worked and mails went out. so im curious how to add allow rule for my nameserver ips into iptables which will have priority over any block rules added in future. 0 -
Do you have CSF installed ? With that you can allow IP in a single command csf -a 8.8.8.8 0 -
Using iptables, # iptables -I INPUT -s 8.8.8.8 -j ACCEPT # iptables -I INPUT -s 4.4.4.4 -j ACCEPT # service iptables save # service iptables restart 0 -
Hello :) Yes, I suggest using CSF to allow the IP address unless you want the responsibility of managing custom iptables firewall rules. Thank you. 0
Please sign in to leave a comment.
Comments
4 comments