On Fri, 13 Jul 2007, Tim Connors wrote: > On Sat, 23 Jun 2007, Andrew Pollock wrote: > > > On Tue, Feb 27, 2007 at 10:02:05PM +0100, Kurt Roeckx wrote: > > > reassign 407336 dhcp3-client > > > thanks > > > > > > > at the start of the remove and add functions in > > > > /etc/dhcp3/dhclient-enter-hooks.d/ntp and it is quite clearly being > > > > called > > > > with $reason=BOUND > > > > (about third time around after a bunch of times when $reason didn't > > > > match). > > > > > > > > This is with > > > > request subnet-mask, broadcast-address, time-offset, routers, > > > > domain-name, domain-name-servers, > > > > netbios-name-servers, netbios-scope, interface-mtu; > > > > in /etc/dhcp3/dhclient.conf > > > > > > This looks like a bug in dhcp3 to me, since it's not requested. > > > > > > > I can't reproduce this problem. I ran a DHCP server/client pair, and > > where the ntp-servers were not requested, none was included in the > > information accessible to the hooks. > > > > Try modifying the debug hooks to include new_ntp_servers and > > old_ntp_servers in the list of variables they write out, and enable the > > debug hooks whilst acquiring a lease. > > Fri Jul 13 15:01:40 EST 2007: entering dhclient-enter-hooks.d, dumping > variables. > reason='BOUND' > interface='eth0' > medium='' > alias_ip_address='' > new_ip_address='150.203.92.87' > new_subnet_mask='255.255.255.0' > new_domain_name='anu.edu.au' > new_domain_name_servers='150.203.92.5' > new_routers='150.203.92.1' > new_static_routes='' > old_ip_address='192.231.166.113' > old_subnet_mask='255.255.255.0' > old_domain_name='aao.gov.au' > old_domain_name_servers='192.231.166.63 192.231.167.64 150.203.1.10' > old_routers='192.231.166.3' > old_static_routes='' > new_ntp_servers='150.203.92.5' > old_ntp_servers='' > > So it's being received despite not being asked for. I tried changing the > shebang line of /sbin/dhclient-script to include a -x, but didn't find > anything of use in there. Where to from here? > > Unfortunately, I don't make a transition to this network very often.
Any thoughts on this? On a differnet network now with a different laptop, and this time I am trying to not request domain-name-servers, because 1) netenv is taking care of that for me, and 2) I am intentionally trying to disable one of the domain name servers that the dhcp server is sending me, because that DNS server is proving to be very unreliable. Despite it not appearing in the request line, it is still being sent to me, and I am ending up with that dodgy DNS server still ending up in pdnsd's configuration via resolvconf. My thoughts are that as well as having the ability to request items from the dhcp server, we should explicitly get the ability to blacklist unsolicited crap the dhcp server returns back to us. I don't *want* my ntp servers or DNS servers to be changed from underneath me. -- Tim Connors | Anglo-Australian Observatory http://site.aao.gov.au/twc | Coonabarabran, NSW 2357, Australia | Tel: +61 2 6842 6286 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]