Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DNS and resolv.conf problem on Fedora 8

12 views
Skip to first unread message

Joseph Hesse

unread,
Feb 25, 2008, 9:16:00 AM2/25/08
to
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?

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.

3. As soon as I installed F8 I pointed my /etc/yum.repos.d files to
point to my local yum server. I did this since I have several F8
machines and it is easier to use a local yum server. This is probably
not relevant.

4. I have another F8 computer which uses a static IP and I don't have
this problem with resolv.conf.

I thank you for reading this and any help you can give me.

Joe Hesse


Nico Kadel-Garcia

unread,
Feb 25, 2008, 11:56:30 AM2/25/08
to Joseph Hesse
Joseph Hesse wrote:
> 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.

Your gateway is probably running "DHCP", and publishing this information for
systems on your network when it assigns them a network configuration. Look
into the settings of your gateway.


> 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.

Well, the 192.168.0.1 is probably caching DNS from your upstream server.

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

Hard-code your network setup, or have your DNS gateway publish specific DNS
servers.

0 new messages