> Hello,
> 
> I'm running 6.0-STABLE and having an issue with dhclient "ignoring"
> dhclient.conf(5).
> 
> On this dual-homed host, I've created dhclient.conf in it's proper
> location with the option modifiers I want.  However, 
> everytime dhclient
> negotiates a new lease, I get my ISP's values in 
> resolv.conf(5) and not
> my over-rides.

Create the file /etc/dhclient-enter-hooks
Add these lines to this file

#!/bin/sh
# Don't replace /etc/resolv.conf
make_resolv_conf() {
}

Brian E. Conklin, MCP+I, MCSE
Director of Information Services
Mason General Hospital
http://www.masongeneral.com

> 
> Here's the relevent part of rc.conf(5):
> 
> # grep ifconfig /etc/rc.conf
> ifconfig_fxp0="DHCP"
> ifconfig_xl0="inet 172.16.1.1  netmask 255.255.255.0"
> 
> and my dhclient.conf file:
> 
> # cat /etc/dhclient.conf
> interface "fxp0" {
>         supersede domain mydomain.com
>         supersede domain-name-servers 172.16.1.17, 172.16.1.32;
> }
> 
> and the last lease issued in /var/db/dhclient.leases.fxp0:
> 
> lease {
>   interface "fxp0";
>   fixed-address 10.0.0.100;
>   option subnet-mask 255.255.252.0;
>   option routers 10.0.0.1;
>   option domain-name-servers 10.0.0.10;
>   option domain-name "myisp.com";
>   option broadcast-address 255.255.255.255;
>   option dhcp-lease-time 59594;
>   option dhcp-message-type 5;
>   option dhcp-server-identifier 10.42.224.1;
>   renew 4 2005/12/1 23:29:22;
>   rebind 5 2005/12/2 05:41:49;
>   expire 5 2005/12/2 07:45:59;
> }
> 
> and lastly, what I see in /etc/resolv.conf:
> 
> # cat /etc/resolv.conf
> search myisp.com
> nameserver 10.0.0.10
> 
> Not sure what I'm doing wrong here.  Googling provided no useful
> information.
> 
> 
> -- 
> Regards,
> Doug
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "[EMAIL PROTECTED]"
> 
=====================================================================
Mason General Hospital
901 Mt. View Drive
PO Box 1668
Shelton, WA 98584
http://www.masongeneral.com
(360) 426-1611
=====================================================================
This message is intended for the sole use of the individual and entity
to whom it is addressed and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you
are not the addressee nor authorized to receive for the addressee, you
are hereby notified that you may not use, copy, disclose or distribute
to anyone this message or any information contained in the message. If
you have received this message in error, please immediately notify the
sender and delete the message.

Replying to this message constitutes consent to electronic monitoring
of this message.

Thank you.

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to