You are not logged in.

#26 2005-03-31 20:25:53

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: ADSL problem

I'm not sure, but I think DHCP overwrites /etc/resolv.conf at startup. This may make things more difficult.

What dns servers do you use at the moment? Is your router also a dns server?

If it does overwrite the file, then you'd need a way to avoid that. e.g. disable DNS support in your router, if possible, Or overwrite it with your own settings. Or find some setting somewhere telling dhcp to not overwrite resolv.conf.

If it doesn't, then you can try using another dns server. If that fixes your problems you know it is caused by the dns server.

If you want to use dnsmasq then put 127.0.0.1 as dns server in /etc/resolv.conf and let dnsmasq use another file with the real dns servers. Because resolv.conf is used for dns lookups by all programs and you want them to use dnsmasq you'd need to use the 127.0.0.1 (or local IP).

Offline

#27 2005-03-31 21:17:02

Net@Worm
Member
From: Moscow, Russia
Registered: 2004-05-02
Posts: 214

Re: ADSL problem

Yes, always then network start, resolv.conf is overwrites.
But after restart network, i put 'nameserver 127.0.0.1' to this file as you say, and now all work, thanks! But i have to do it always then computer start or i restart the network daemon.
PS: i add nameservers to /etc/dnsmasq.conf
PPS: thanks again!

Offline

#28 2005-03-31 21:49:32

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: ADSL problem

You can add anything you want to run at bootime after the normal boot to rc.local. So in there you could fix the resolv.conf. Though I'm sure someone knows a way to disable the resolv.conf overwriting of dhcp somewhere.

Offline

Board footer

Powered by FluxBB