LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-28-2008, 01:20 AM   #1
Kbiscu1t
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Rep: Reputation: 0
[RESOLVED] Ping to IP and router successful, but not DNS D: openSUSE 11


Recently while trying to acquire a static IP (ethernet), my internet got disabled (not sure how, but it just...didn't work after that).

"No biggie" I thought, "I'll just change everything back to how it was."

No go. Firefox displays "Address not found", and other internet based apps wouldn't connect either. I ping to my router and IP addresses of websites, but pinging to the actual DNS (google.com, etc) it returns an unknown host. Firefox responds the same way, it loads Google's IP just fine, but google.com apparently doesn't exist.

I've fiddled around in YaST network settings for about an hour now trying to fix the settings with no avail. I've seen some posts with similar issues but the solutions were irrelevant to me. I would love to have my internet back

Thanks to all who have read!

Last edited by Kbiscu1t; 06-28-2008 at 12:36 PM.
 
Old 06-28-2008, 01:47 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
The domain name server that your system uses is listed in the line:

nameserver IP.ADDRESS.HERE

of the file /etc/resolv.conf. Each distro has its own mechanism for configuring this file.

If that line does not exist, no DNS (unless the system itself is running its own DNS).

If the IP address of the DNS server in /etc/resolv.conf is not responsive, no DNS. Or if it points to your routers internal (cheapo, bad) DNS, and your router is unable to return queries, no DNS. Your router obtains its DNS settings for DHCP handout via either you, or via DHCP itself from your ISP.

You'll have to help us understand which of these is scenarios reflects your situation.

You can always edit /etc/resolv.conf and add the correct nameserver line with a know working, fast, responsive, usable DNS server. Your system may overwrite on the next net up/down, but you're just trying to test to see what is wrong so don't worry about that for now.

You can have up to 3 nameserver lines in your /etc/resolv.conf. But the second is tried only after 10 seconds of no response from the 1st, and the 3rd only 10 seconds beyond that. So, long delays with unresponsive DNS servers.
 
Old 06-28-2008, 01:52 AM   #3
Greenfuse
Member
 
Registered: Nov 2004
Distribution: gentoo, arch centos
Posts: 164

Rep: Reputation: 22
Sounds like nameserver configuration. Sometimes dhcp does not get a correct setting for this from a router, or maybe you needed to set it statically when setting your static IP.

check the file /etc/resolv.conf to see what the nameserver setting is. Mine looks like:

nameserver 203.21.20.20

but yours will need to be different


I am not sure where Yast would configure this setting, but you can edit /etc/resolv.conf manually as root.

If you do not know the IP address of your DNS server, you can:

ask your ISP

check it from a MS Windows operating system (yeah ok "boo hiss microsoft" etc etc) by typing ipconfig /all in a prompt window
 
Old 06-28-2008, 01:53 AM   #4
Greenfuse
Member
 
Registered: Nov 2004
Distribution: gentoo, arch centos
Posts: 164

Rep: Reputation: 22
sorry to cross-post, Mr C, you type faster than me
 
Old 06-28-2008, 12:35 PM   #5
Kbiscu1t
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Such a simple solution

Not sure what screwed it up, but it's fixed! A reboot did nothing different, it seems like OpenSUSE kept what I put in the file.

Thanks!
 
  


Reply

Tags
dns, ethernet, internet, ip, network, ping, router, suse, yast


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can ping router, can't ping internet IamSauce Slackware 6 03-11-2008 08:03 AM
Wifi connected to router, ping to router ok, no webaccess. what is wrong? deepcore Linux - Wireless Networking 5 01-07-2008 02:59 AM
Successful ping to proxy but cannot go to internet melverx Linux - Newbie 6 04-07-2006 04:25 PM
LAN/ADSL Router ping working but DNS ping fails R N Ghosh Linux - Networking 1 01-13-2006 08:44 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 10:10 AM


All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration