resolv.conf getting rewritten at system startup
Hi all, I am running FBSD 6.0-RELEASE I use DHCP to configure my network interface. At startup my resolv.conf is overwritten, setting my nameserver to the address of the router running DHCP. I tried commenting out almost all of the rc.d/resolv startup script but to no avail. I read the man page for dhcp-options and then proceeded to add option domain-name-servers a.b.c.d This was also of no help. I then remembered something about FBSD 6 no longer using ISC dhcp client. I am running BIND 9.3.1 with internal and external views of my namespace set-up so it is imperative that I be able to tell hosts on the internal network which name server to use. If anyone has any ideas I'd appreciate the help. Thanks in advance, Duane P.S. Is there a man page for the dhcp client FBSD 6 is using (what is FBSD 6 using)? -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: resolv.conf getting rewritten at system startup
On Thursday 16 March 2006 12:29, Duane Whitty wrote: Hi all, I am running FBSD 6.0-RELEASE I use DHCP to configure my network interface. At startup my resolv.conf is overwritten, setting my nameserver to the address of the router running DHCP. I tried commenting out almost all of the rc.d/resolv startup script but to no avail. I read the man page for dhcp-options and then proceeded to add option domain-name-servers a.b.c.d This was also of no help. I then remembered something about FBSD 6 no longer using ISC dhcp client. I am running BIND 9.3.1 with internal and external views of my namespace set-up so it is imperative that I be able to tell hosts on the internal network which name server to use. If anyone has any ideas I'd appreciate the help. You need to use supersede like this: interface ath0 { supersede domain-name yourdomain.com; supersede domain-name-servers 127.0.0.1; } See man dhclient.conf for more options. Beech -- --- Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | Mangohealth \ / - NO HTML/RTF in e-mail | 201 East 9Th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - XanGo - http://www.mangohealth.org --- pgpUaQif4jJMl.pgp Description: PGP signature
Re: resolv.conf getting rewritten at system startup
Duane Whitty wrote: I use DHCP to configure my network interface. At startup my resolv.conf is overwritten, setting my nameserver to the address of the router running DHCP. dhclient, also the new one updates /etc/resolv.conf with the information received from the dhcp server. You can change things by configuring dhclient editing /etc/dhclient.conf see dhclient.conf(5) and dhcp-options(5) Cheers, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt Subject ID: 9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72 Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: resolv.conf getting rewritten at system startup
Beech Rintoul wrote: On Thursday 16 March 2006 12:29, Duane Whitty wrote: Hi all, I am running FBSD 6.0-RELEASE I use DHCP to configure my network interface. At startup my resolv.conf is overwritten, setting my nameserver to the address of the router running DHCP. I tried commenting out almost all of the rc.d/resolv startup script but to no avail. I read the man page for dhcp-options and then proceeded to add option domain-name-servers a.b.c.d This was also of no help. I then remembered something about FBSD 6 no longer using ISC dhcp client. I am running BIND 9.3.1 with internal and external views of my namespace set-up so it is imperative that I be able to tell hosts on the internal network which name server to use. If anyone has any ideas I'd appreciate the help. You need to use supersede like this: interface ath0 { supersede domain-name yourdomain.com; supersede domain-name-servers 127.0.0.1; } See man dhclient.conf for more options. Beech Hi, That worked perfectly. Thanks to all for the quick responses. Sincerely, Duane ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: resolv.conf getting rewritten at system startup
On Thu, Mar 16, 2006 at 05:29:45PM -0400, Duane Whitty wrote: Hi all, I am running FBSD 6.0-RELEASE I use DHCP to configure my network interface. At startup my resolv.conf is overwritten, setting my nameserver to the address of the router running DHCP. I tried commenting out almost all of the rc.d/resolv startup script but to no avail. I read the man page for dhcp-options and then proceeded to add option domain-name-servers a.b.c.d This was also of no help. I then remembered something about FBSD 6 no longer using ISC dhcp client. I am running BIND 9.3.1 with internal and external views of my namespace set-up so it is imperative that I be able to tell hosts on the internal network which name server to use. If anyone has any ideas I'd appreciate the help. Read the manpage for dhclient.conf(5) and look at the 'supersede' or 'prepend' directives. E.g. If you always want to use a nameserver with IP 12.34.56.78 you would put the line supersede domain-name-servers 12.34.56.78; in /etc/dhclient.conf Thanks in advance, Duane P.S. Is there a man page for the dhcp client FBSD 6 is using (what is FBSD 6 using)? 'man dhclient' should work fine. FBSD 6 uses the OpenBSD dhclient (which I believe derive from an older version of the ISC one.) -- Insert your favourite quote here. Erik Trulsson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
man dhclient [was Re: resolv.conf getting rewritten at system startup]
Erik Trulsson wrote: On Thu, Mar 16, 2006 at 05:29:45PM -0400, Duane Whitty wrote: Hi all, I am running FBSD 6.0-RELEASE I use DHCP to configure my network interface Thanks in advance, Duane P.S. Is there a man page for the dhcp client FBSD 6 is using (what is FBSD 6 using)? 'man dhclient' should work fine. FBSD 6 uses the OpenBSD dhclient (which I believe derive from an older version of the ISC one.) Hi, Yes, man dhclient in FBSD 6 does work fine. I misinterpreted how to apply its instructions. Duane -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]