domain search path set if in reply even though not requested

Bug #40281 reported by Tollef Fog Heen
6
Affects Status Importance Assigned to Milestone
dhcp3 (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Some WLAN routers are not smart enough to look at what you request in /etc/dhcp3/dhclient.conf. I have removed domain-name from the list of things I request. /etc/dhcp3/dhclient-script seems to just overwrite the domain name it gets even if it's not requested.

Revision history for this message
Martin Pitt (pitti) wrote :

You mean that it overwrites the 'search' value in /etc/resolv.conf? I can't see anything else, but please confirm.

Indeed the script could check dhclient.conf to avoid this.

Changed in dhcp3:
status: Unconfirmed → Needs Info
Revision history for this message
Tollef Fog Heen (tfheen) wrote :

Your interpretation is correct.

Revision history for this message
Brian Murray (brian-murray) wrote :

Looking at the dhclient-script in Feisty it looks like this was resolved. Is that correct?

Changed in dhcp3:
assignee: nobody → brian-murray
Revision history for this message
Kees Cook (kees) wrote :

I think the problem is that dhclient allows the $new_domain_name to be set when it is not requested, so the bug is not with the script itself, but the caller. (i.e. no, I think this is not yet fixed.)

Revision history for this message
Christopher Yeleighton (giecrilj) wrote :

According to the documentation, the DHCP server can declare the domain name even if it is not explicitly requested. It is most probably the case. It does not matter whether such information is known because it was requested or because the server considered it appropriate to give it; it is just known, full stop.

Changed in dhcp3:
assignee: brian-murray → nobody
status: Incomplete → Confirmed
Changed in dhcp3:
milestone: none → later
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.