openvpn update-resolv-conf script does not support multiple domain
Bug #245893 reported by
Thibaut Robert
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openvpn (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: openvpn
I configured openvpn so that it updates my /etc/resolv.conf upon connection, by using the resolvconf package and the provided update-resolv-conf script
My config looks like this:
up /etc/openvpn/
down /etc/openvpn/
dhcp-option DNS 10.24.253.1
dhcp-option DOMAIN "domainA.net domainB.fr domainC.fr"
the problem is that only the domainA.net is added to resolv.conf by update-resolv-conf. I tried to split the 3 domains in 3 distinct dhcp-option lines, it does not work either.
I found the problem in the script /etc/openvpn/
(ubuntu 8.04, openvpn 2.1~rc7-1ubuntu3.3)
To post a comment you must log in.
Thank you for this report and patch.
However I'm not convinced this patch should be included into Ubuntu. According to RFC1533 (section 3.17), the DHCP "DOMAIN" option is supposed to only contain one domain name (as is the "domain" line in /etc/resolv.conf, if you look at man resolv.conf). Though they fulfill quite similar (and exclusive) roles in resolv.conf, "domain" and "search" are not interchangeable...
I will close this bug as invalid since the behavior you observe is more the RFC-compliant way of handling that option. Please feel free to reopen this bug if you disagree and want to continue the discussion.