Package: openvpn
Version: 2.3.2-4
Severity: wishlist

The openvpn package includes a script /etc/openvpn/update-resolv-conf.

Observation #1. The script adds nameserver addresses extracted from
openvpn dhcp-option strings to the variables IF_DNS_NAMESERVERS and
IF_DNS_SEARCH which are not initialized earlier in the script. These
same variables are used by ifup to pass information to its hook
scripts in /etc/network/if-*.d/.

Question #1. Does the script expect IF_DNS_NAMESERVERS and IF_DNS_SEARCH to
contain information when it starts? Information coming from ifup?

Observation #2. The script calls resolvconf as follows.

    echo -n "$R" | /sbin/resolvconf -a "${dev}.inet"

Note that the resolvconf record name suffix ".inet" identifies ifup as
the sender of the information to resolvconf: this is one of ifup's
address family names; if /etc/network/interfaces contains "iface DEV
inet ..." then ifup will create a resolvconf record named DEV.inet.

Question #2. Is it intentional that update-resolv-conf overwrites
ifup's resolvconf record for the same device?

Depending on the answers, this will either become a wish that the
answers be included in documentation or comments, or a bug report.
-- 
Thomas Hood


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to