Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot ping external ip but can be reached from outside

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
CA
Hi there,

I have a server box where I can reach from outside Internet;
but when I try to ping to say yahoo.com from within the server, I get a host not found.

I believe its either a iptable rule or its pointing to a wrong name server. does anyone know where a name server is sepcified, and also, how one can backup/clear all existing iptable rules?

thanks! :)
 
just to be clear,
I don't seem to even hit my gateway when I do a traceroute ...


$ traceroute yahoo.com
traceroute: unknown host yahoo.com
 
ping yahoo.com should lead to the same destination as
Code:
ping 66.94.234.13
You may use the latter to verify it's a nameserver problem.
The nameserver is normally specified in /etc/resolv.conf, but is often configured on startup with /etc/init.d/network, ifup - very distribution- and hardwarespecific.
Code:
route
If you have a gateway, you would say:
Code:
route add default gw 192.168.x.y
or what the ip of your gateway (router) is.



seeking a job as java-programmer in Berlin:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top