Re: DNS Problem
- From: Scott Hemphill <hemphill@xxxxxxxxxxxxx>
- Date: Mon, 25 Feb 2008 12:08:07 -0500
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
.
- Follow-Ups:
- Re: DNS Problem
- From: Scott Hemphill
- Re: DNS Problem
- References:
- DNS Problem
- From: Joseph Hesse
- DNS Problem
- Prev by Date: Re: file sharing between ubuntu and leopard
- Next by Date: portblocked - cannot connect to jabber server
- Previous by thread: Re: DNS Problem
- Next by thread: Re: DNS Problem
- Index(es):
Relevant Pages
|