[Pkg-utopia-maintainers] Bug#465158: network-manager: Please add support for domain-search

Bas Zoetekouw bas at debian.org
Mon Feb 11 20:36:55 UTC 2008


tag 465158 + patch
thanks

Hi!

You wrote:

> ISC DHCP 3.1 provides support for the domain-search option. This is the
> correct way for a DHCP server to provide a domain search list. Wedging
> multiple domains into the domain-name option is a horrible hack.
> It seems, however, that that is what NetworkManager expects, and so how
> it generates an /etc/resolv.conf. This behaviour should be changed in
> light of dhclient 3.1, and should do something like this:

Attached is a patch that should fix this.  It adds support for the
domain-search option of dhcp, and uses the logic you suggested to
determine what search domains to put in resolv.conf.  

I have tested the patch only at my local configurationw, which is
n-m + dhcp3-client 3.1.0-2 (no resolvconf) on my laptop, and a pre-3.1
dhcp3-server on my server (current etch version), and for that config,
it seems to work fine.  Testing for other configuration, particular with
a new, post-3.1, dhcpd is probably needed, though.

Please feel free to send the patch upstream, if you think it's stable
enough.

Best regards,
Bas.

-- 
+--------------------------------------------------------------+
| Bas Zoetekouw      | Sweet day, so cool, so calm, so bright, |
|--------------------| The bridall of the earth and skie:      |
| bas at zoetekouw.net  | The dew shall weep thy fall tonight;    |
+--------------------|                    For thou must die.   |
                     +-----------------------------------------+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-diff
Size: 9177 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20080211/b34360a7/attachment.diff 


More information about the Pkg-utopia-maintainers mailing list