LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-29-2004, 05:25 PM   #1
belorion
Member
 
Registered: Aug 2003
Distribution: Slackware 10.0
Posts: 124

Rep: Reputation: 16
IP resolves, not others


Okay, so I just recompiled and installed 2.6.7 kernel.

Got DHCP working ... sort of. My computer resolves to the correct IP. I can ping other IP address, ssh to a host completely off the network if I use the specific IP.

However, I cannot resolve www.google.com, www.yahoo.com, etc. In other words, my net works fine if I have the actualy IP... but nothing else.

What would cause this problem? How do I fix it?
 
Old 06-29-2004, 05:32 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Make sure that your ISPs DNS servers are listed in /etc/resolv.conf - ie:
nameserver ip.of.isps.dns1
nameserver ip.of.isps.dns2
 
Old 06-29-2004, 07:06 PM   #3
belorion
Member
 
Registered: Aug 2003
Distribution: Slackware 10.0
Posts: 124

Original Poster
Rep: Reputation: 16
I had been under the impression that DNS information was supplied by the DHCP server. The problem is that this is on a notebook, and as such I am on 3 or 4 different networks at any given point on my average day ... which would likely resolve to different DNS... and I've never had to do this before on any system with DHCP enabled ... how is it handled on the other automatically? (such as Slackware)
 
Old 06-30-2004, 02:39 AM   #4
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
Have a look in /etc/sysconfig/network/ which on my system has default files called config, dhcp, routes and wireless as well as the interface specific ifcfg-lo, ifcfg-eth0, ifcfg-eth1, ifcfg-wlan0 etc

If you look at the dhcp file there are a lot of options in there that are used if your system uses dhcpcd. They can be overridden in ifcfg-ethxx if you require specific different dhcp behaviour per card.

It may be on your system everything is in your ifcfg-eth0 file.

The bits in my various files that do the magic are:

STARTMODE='onboot'
BOOTPROTO='dhcp'
DHCLIENT_MODIFY_RESOLV_CONF='yes'
DHCLIENT_SET_DEFAULT_ROUTE='yes'
MODIFY_RESOLV_CONF_DYNAMICALLY="yes"
DHCLIENT_SET_DEFAULT_ROUTE="yes"
DHCLIENT_MODIFY_RESOLV_CONF="yes"

This gets dhcp to create a temporary resolv.conf (it saves the original and restores it on exit) with the info from the dhcp server. You can look at this to see what nameserver info it's put in.

If in doubt about what configuration files take precedence you can always put everything in ifcfg-ethxx once it's working correctly.

Good luck.
 
  


Reply


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
Virtual Hosts, DNS resolves, PLEASE HELP!! parasbshah Linux - Software 14 10-17-2005 01:38 PM
linux resolves IP Addresses but not URLs...> Scoobsky Linux - Networking 6 10-03-2005 09:41 AM
Konqueror resolves symlinks crashmakerMX Linux - Software 4 06-23-2005 11:09 AM
Any name resolves to. A? CNAME? DNS Q dlublink Linux - Networking 3 01-11-2005 09:55 AM
Domain resolves with no www... ServerStorm Linux - Software 20 11-15-2004 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:39 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration