Re: DNS Problem



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.

DHCP servers normally tell their clients the address of DNS servers and
it is normal for gateway/firewall/routers to run DNS servers themselves.
If you set up the DNS on your gateway correctly, everything should work OK.

Robert

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
.



Relevant Pages

  • Re: 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 ... configuration, but you could use it to do additional initialization. ...
    (comp.os.linux.networking)
  • 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: howto debug slow WLAN connection?
    ... nameserver x.abc....whatever2 (two DNS servers from our company, ... search entries were ... created from some dynamic file (whereas the last search is from my ...
    (comp.os.linux.networking)
  • Re: Primary vs. Secondary
    ... > trying to query for an ip, the root nameserver would ... send a list of TLD DNS servers, depending on the TLD your domain is in. ... irrelevant if all your DNS servers answer with authority. ...
    (microsoft.public.windows.server.dns)