On 7/7/06, Tyler Smith <[EMAIL PROTECTED]> wrote:
Hi,

I think I've sorted out my internet connection problem, at least
temporarily. I determined that I was having DNS problems, as I could
ping numerical IP addresses, but not domain names. My resolv.conf file,
as automatically generated, lists my router's address as the nameserver.
I contacted my ISP and found out the DNS address they use, and added it
manually to resolv.conf. Everything seems fine now.

As noted above, normally this should work as your router would act as
a DNS server itself. It is likely not setup properly or broken.


I don't know much about networking, but from what I've read it seems
that I should expect resolv.conf to get rewritten regularly. My
questions are:

1) How to insure that the correct DNS address is included when
resolv.conf is generated?

Since the resolv.conf gets overwritten by your dhcp client I'd just
configure the information there. I'm assuming here that you use the
default dhclient, configuration with pump would be different.

If so, have a look at /etc/dhclient.conf. There you can set an option such as:
prepend domain-name-servers <some-ip>;

The IP you specify there will be written to resolv.conf before the
DHCP supplied IP. (which will be the IP of your router). So if you
just add 2 lines prepending the DNS servers of your provider that
should work fine. Resolvconf might allow you to do the same but I've
generally found it a bit cumbersome to set up.


2) Do ISPs change DNS addresses often? Is there a way to detect it when
it happens, so I don't have to call them up for the new one every time
it happens?

You could just try attaching your machine to the uplink instead of to
the router if possible and then run dhclient. That way you'd get the
provider-supplied DNS servers. Your router probably has the modem
built in though so I'm guessing that wouldn't work for you. Your best
bet is actually going into the router configuration and find out why
it's not setting up DNS properly.

greets,
Wim


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to