From owner-freebsd-questions@FreeBSD.ORG Thu Dec 1 17:35:39 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5F0516A41F for ; Thu, 1 Dec 2005 17:35:39 +0000 (GMT) (envelope-from bconklin@masongeneral.com) Received: from fw.masongeneral.com (list.masongeneral.com [66.119.204.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B40343D83 for ; Thu, 1 Dec 2005 17:35:26 +0000 (GMT) (envelope-from bconklin@masongeneral.com) Received: from localhost (unknown [127.0.0.1]) by fw.masongeneral.com (Postfix) with ESMTP id CECFA154B8 for ; Thu, 1 Dec 2005 09:35:22 -0800 (PST) Received: from fw.masongeneral.com ([127.0.0.1]) by localhost (fw.masongeneral.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02150-10 for ; Thu, 1 Dec 2005 09:35:18 -0800 (PST) Received: by fw.masongeneral.com (Postfix, from userid 1002) id 953BA154BA; Thu, 1 Dec 2005 09:35:17 -0800 (PST) Received: from mx1.masongeneral.com (mx1.masongeneral.com [172.31.195.56]) by fw.masongeneral.com (Postfix) with ESMTP id 87C8514F96 for ; Thu, 1 Dec 2005 09:35:16 -0800 (PST) X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 1 Dec 2005 09:35:16 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: dhclient.conf is being ignored Thread-Index: AcX2lziseKHrUZTORMyFfMBLR03LpwAAbWlA From: "Brian E. Conklin" To: X-Privacy-Notice: Please visit http://www.masongeneral.com/HIPAA.htm X-Virus-Scanned: amavisd-new at masongeneral.com Subject: RE: dhclient.conf is being ignored X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 17:35:40 -0000 > Hello, >=20 > I'm running 6.0-STABLE and having an issue with dhclient "ignoring" > dhclient.conf(5). >=20 > On this dual-homed host, I've created dhclient.conf in it's proper > location with the option modifiers I want. However,=20 > everytime dhclient > negotiates a new lease, I get my ISP's values in=20 > 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 >=20 > Here's the relevent part of rc.conf(5): >=20 > # grep ifconfig /etc/rc.conf > ifconfig_fxp0=3D"DHCP" > ifconfig_xl0=3D"inet 172.16.1.1 netmask 255.255.255.0" >=20 > and my dhclient.conf file: >=20 > # cat /etc/dhclient.conf > interface "fxp0" { > supersede domain mydomain.com > supersede domain-name-servers 172.16.1.17, 172.16.1.32; > } >=20 > and the last lease issued in /var/db/dhclient.leases.fxp0: >=20 > 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; > } >=20 > and lastly, what I see in /etc/resolv.conf: >=20 > # cat /etc/resolv.conf > search myisp.com > nameserver 10.0.0.10 >=20 > Not sure what I'm doing wrong here. Googling provided no useful > information. >=20 >=20 > --=20 > Regards, > Doug >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to=20 > "freebsd-questions-unsubscribe@freebsd.org" >=20 ====================================================================== 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.