Jump to content

can't ping by host name?


H@L0_F00

Recommended Posts

I can't ping google.com from my ubuntu box that I'm sshed into. I pinged it from my WinXP box, got the ip, and then I pinged that ip from ubuntu which worked fine :huh:

no hostnames can be pinged but pinging their ip works fine which might be a real problem because I planning on setting up Apache on it :(

anybody have any idea what could be wrong and/or how I could go about fixing it?

Thanks in advance ;)

Link to comment
Share on other sites

You say the IP address is static and i assume you dont have a GUI to configure network settings.

You can use your preffered text editor but i am going to say "nano" for this.

You will edit your "/etc/resolv.conf" file to change the DNS server

sudo nano /etc/resolv.conf

There should be entries there called nameserver.

Change them to the IP address of you DNS server(s)

EXAMPLE:

nameserver XXX.XXX.XXX.XX

nameserver XXX.XXX.XXX.XX

Once you save the file you should be good to go

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...