openvpn update-resolv-conf script does not support multiple domain

Bug #245893 reported by Thibaut Robert
4
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/update-resolv-conf
down /etc/openvpn/update-resolv-conf
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/update-resolv-conf (see proposed patch)

(ubuntu 8.04, openvpn 2.1~rc7-1ubuntu3.3)

Revision history for this message
Thibaut Robert (thibaut-robert) wrote :
Revision history for this message
Thierry Carrez (ttx) wrote :

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.

Changed in openvpn:
status: New → Invalid
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.