Re: DNS Problem



Joseph Hesse <joe_hesse@xxxxxxxxx> writes:

Hi,

I am using Fedora 8.

Its my impression that the DNS servers listed in /etc/resolv.conf are the
ones always used for name lookup.

The resolv.conf file generated when I installed F8 is:

-------------------------------------
; generated by /sbin/dhclient-script
search domain.actdsltmp
nameserver 192.168.0.1
nameserver 208.42.42.42
-------------------------------------

I am not sure why 192.168.0.1 is there since it is my gateway address. I
manually edited resolv.conf to reflect the DNS servers given to me by my
ISP. The edited one is:

-------------------------------------
; generated by /sbin/dhclient-script
search domain.actdsltmp
nameserver 209.98.98.98
nameserver 208.42.42.42
-------------------------------------

When I restart my computer, the resolv.conf file goes back to the "just
installed" version. My ActionTec DSL modem was manually configured to
know about the two DNS servers given by my ISP but this has no affect.

Occasionally I get problems which appear to be DNS related but I am not
sure. In any case, I think I should have both DNS servers available.

My question is how do I get resolv.conf to reflect both my DNS servers?

Suppose your modem is on the "eth0" interface. Then you would set up
a file called "/etc/dhclient-eth0.conf". It would have a line like
this in it:

supersede domain-name-servers 209.98.98.98, 208.42.42.42;

You might also want to supersede the search line, if there's anything
that makes more sense. Read "man dhclient.conf" for the details on
what can go into this file.

Here is some more information.

1. I have my network (/etc/sysconfig/network-scripts/ifcfg-eth0)
configured to use DHCP rather than a static IP.

2 I turned off NetworkManager and NetworkManagerDispatcher and turned on
network, i.e.

[joe@sam02 ~]$ /sbin/chkconfig --list | grep Network
NetworkManager 0:off 1:off 2:on 3:off 4:off 5:off 6:off
NetworkManagerDispatcher 0:off 1:off 2:off 3:off 4:off
5:off 6:off

[joe@sam02 ~]$ /sbin/chkconfig --list | grep network
network 0:off 1:off 2:off 3:on 4:on 5:on 6:off

I am not sure what NetworkManager and NetworkManagerDispatcher do, the
"man" pages were not helpful.

Use NetworkManager on a computer that you want to connect to different
networks at different times, depending on what networks are available.
This is really useful on a laptop with a wireless network adapter.

NetworkManagerDispatcher allows you to run scripts based on what
network you've connected to. It doesn't do anything in the default
configuration, but you could use it to do additional initialization.

Scott
--
Scott Hemphill hemphill@xxxxxxxxxxxxxxxxxx
"This isn't flying. This is falling, with style." -- Buzz Lightyear
.



Relevant Pages

  • DNS Problem
    ... Its my impression that the DNS servers listed in /etc/resolv.conf are the ... nameserver 192.168.0.1 ... I turned off NetworkManager and NetworkManagerDispatcher and turned on ... machines and it is easier to use a local yum server. ...
    (comp.os.linux.networking)
  • Re: NetworkManager and DHCP
    ... because im already running bind on ... my system and I have static entries in named.conf ... got the bits i needed (everything except DNS servers) like this.. ... NetworkManager running anyway, ...
    (comp.os.linux.networking)
  • Re: DNS Problem
    ... Joseph Hesse wrote: ... Its my impression that the DNS servers listed in /etc/resolv.conf are the ... nameserver 192.168.0.1 ... I turned off NetworkManager and NetworkManagerDispatcher and turned on ...
    (comp.os.linux.networking)
  • Re: FC6 ipw3945 on Dell D820 not working. Whats the best way?
    ... My BIOS is A6, and it does not suspend. ... I hate that I have this brand new laptop and I have to run an older version of Fedora on it, but I've tried all I can try. ... time BEFORE the NetworkManager starts. ... They have a tool called SCPM, System Configuration Profile Manager, that lets you store and retrieve different config files for different environments. ...
    (Fedora)
  • Re: NetworkManager: How to set caching nameserver?
    ... I've set up dhclient.conf with a prepend statement. ... i.e. /etc/resolv.conf has the local nameserver. ... already subverted by the NetworkManager developers (dhclient-script ... configuration options and scripting hooks. ...
    (Fedora)