Re: resolv.conf gets reset
On Tue, Jun 22, 2004 at 08:57:05PM -0700, Brenden T. wrote: | Derrick 'dman' Hudson wrote: | | On Sun, Jun 20, 2004 at 09:11:40AM -0700, Brenden wrote: | | Hi all, new debian user here with some basic questions. | | | | My resolv.conf file keeps getting reset to nothing (well, just the | | two comment lines warning me not to change things manually) | | everytime I reboot. I just plain don't have any idea what could be | | causing this. Ideas? Help? | | My guess is you are using DHCP and the DHCP server on the network | doesn't tell the clients what nameserver to use. | | | | I'm not using DHCP. All the address are statically assigned. I gave it | the nameserver address at install when it asked me, and then it's been | erasing the /etc/resolv.conf file ever since. DHCP *might* have | mistakenly been installed by the install system, I haven't verified that | yet. But the start up parameters for eth0 expressly say static. | | BTW, I'm using the latest stable Debian, Woody I think. I just got it | off netinstall a few days ago. | | resolv.conf from memory | # Two lines of prefab comments, waring me not hand edit this file, and | # to use resolvconf instead. | nameserver 10.0.0.1 | | And that's it. Except the last line doesn't appear there when it's broke. In that case, figure out what this 'resolvconf' program is and why it keeps overwriting your resolv.conf file. I have no idea what that program is and have never used it. I guess if you uninstall that program then nothing will prevent you from manually editing /etc/resolv.conf. (I have always used dhcp or manually edited the file) HTH, -D -- He is no fool who gives up what he cannot keep to gain what he cannot lose. --Jim Elliot www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED] signature.asc Description: Digital signature
Re: resolv.conf gets reset
Remove resolvconf. You don't need it (why did you install it?) -- John Hasler [EMAIL PROTECTED] Dancing Horse Hill Elmwood, Wisconsin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: resolv.conf gets reset
Derrick 'dman' Hudson wrote: On Sun, Jun 20, 2004 at 09:11:40AM -0700, Brenden wrote: | Hi all, new debian user here with some basic questions. | | My resolv.conf file keeps getting reset to nothing (well, just the | two comment lines warning me not to change things manually) | everytime I reboot. I just plain don't have any idea what could be | causing this. Ideas? Help? My guess is you are using DHCP and the DHCP server on the network doesn't tell the clients what nameserver to use. I'm not using DHCP. All the address are statically assigned. I gave it the nameserver address at install when it asked me, and then it's been erasing the /etc/resolv.conf file ever since. DHCP *might* have mistakenly been installed by the install system, I haven't verified that yet. But the start up parameters for eth0 expressly say "static." BTW, I'm using the latest stable Debian, Woody I think. I just got it off netinstall a few days ago. resolv.conf from memory # Two lines of prefab comments, waring me not hand edit this file, and # to use resolvconf instead. nameserver 10.0.0.1 And that's it. Except the last line doesn't appear there when it's broke.
Re: resolv.conf gets reset
On Sunday 20 June 2004 09:11 am, Brenden wrote: Hi all, new debian user here with some basic questions. My resolv.conf file keeps getting reset to nothing (well, just the two comment lines warning me not to change things manually) everytime I reboot. I just plain don't have any idea what could be causing this. Ideas? Help? Hi. I don't know the answer, yet. I have a clue, IF you are using dhcp. If you are, /etc/resolv.conf is overwritten by the script /etc/dhclient-script. (If you are the type who is comfortable reading shell script, searching dhclient-script for resolvconf brings you to the relevant part.) You may be able to get it to write the correct resolv.conf by configuring /etc/dhclient.conf. This file has a man page. I haven't ever used an /etc/rc.boot/ script, but if it works like Tom says, then I think it is the easiest way. It is also a little crufty... personally I prefer to have files generated correctly to begin with, when realistic. PS If you post again, please let us know which version of Debian you are using, and paste in your resolv.conf (even if it is just comments) best wishes Aaron To set resolv.conf, I su then type echo 'nameserver 10.0.0.1' | /sbin/resolvconf -a eth0 which takes care of the problem for one | session. How do I make this permanent? -- Best, Aaron Maxwell - http://redsymbol.com Internet Joint Ventures - http://amusene.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: resolv.conf gets reset
On Sun, Jun 20, 2004 at 09:11:40AM -0700, Brenden wrote: Hi all, new debian user here with some basic questions. My resolv.conf file keeps getting reset to nothing (well, just the two comment lines warning me not to change things manually) everytime I reboot. I just plain don't have any idea what could be causing this. Ideas? Help? To set resolv.conf, I su then type echo 'nameserver 10.0.0.1' | /sbin/resolvconf -a eth0 which takes care of the problem for one session. How do I make this permanent? I noticed this too on a new Sid install on my laptop. What I did is add nameserver 10.0.0.1 to this file: /etc/resolvconf/resolv.conf.d/tail and it appends the nameserver to resolv.conf properly during boot up. Andy -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: resolv.conf gets reset
On Monday 21 June 2004 05:04 am, Andy Firman wrote: I noticed this too on a new Sid install on my laptop. What I did is add nameserver 10.0.0.1 to this file: /etc/resolvconf/resolv.conf.d/tail That's a good idea, thanks. Anyone know what's going on? I'd love to track this down to root cause. Is there a general guide to Debian startup somewhere? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: resolv.conf gets reset
On Sun, Jun 20, 2004 at 09:11:40AM -0700, Brenden wrote: | Hi all, new debian user here with some basic questions. | | My resolv.conf file keeps getting reset to nothing (well, just the | two comment lines warning me not to change things manually) | everytime I reboot. I just plain don't have any idea what could be | causing this. Ideas? Help? My guess is you are using DHCP and the DHCP server on the network doesn't tell the clients what nameserver to use. If you are responsible for the DHCP server, then fix its configuration. If you have no control over the DHCP server, then configure your client to override the DNS settings reported by DHCP. If you are using the 'dhcp-client' package (instead of pump or dhcpcd) then look at /etc/dhclient.conf. The following lines from my dhclient.conf file will be of interest to you: supersede domain-name dman13.dyndns.org ; supersede domain-name-servers 127.0.0.1 ; (if you don't use DHCP, then nothing should change /etc/resolv.conf at all) HTH, -D -- He is no fool who gives up what he cannot keep to gain what he cannot lose. --Jim Elliot www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED] signature.asc Description: Digital signature
Re: resolv.conf gets reset
On Sun, Jun 20, 2004 at 09:11:40AM -0700, Brenden wrote: My resolv.conf file keeps getting reset to nothing (well, just the two comment To set resolv.conf, I su then type echo 'nameserver 10.0.0.1' | /sbin/resolvconf -a eth0 which takes care of the problem for one session. i've never heard of /sbin/resolvconf. there isn't one on this machine. it's probably dhcp overwriting it. the easiest thing is probably put a script in /etc/rc.boot/ that copies the correct resolv.conf over the bad one. -- Tom Vier [EMAIL PROTECTED] DSA Key ID 0x15741ECE -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]