[Resolvconf-devel] Bug#642222: resolvconf: search list order for the lokal network

Olaf Stenzel stenzel at pylo.net
Tue Sep 20 13:51:10 UTC 2011


Package: resolvconf
Version: 1.46
Severity: normal

In some cases it would be nice if the search domain from the local dhcp is used as
the first and then the search domains from the base file. In this case also the
local nameserver must be the first choice.
I've made this configurable in the file /etc/defaults/resolvconf with the variable
BASEFILE_APPEND=yes|no



-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages resolvconf depends on:
ii  debconf [debconf-2.0]   1.5.36.1         Debian configuration management sy
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip

resolvconf recommends no packages.

resolvconf suggests no packages.

-- Configuration Files:
/etc/resolvconf/resolv.conf.d/base changed [not included]
/etc/resolvconf/update.d/libc changed [not included]

-- debconf information excluded
-------------- next part --------------
--- /etc/resolvconf/update.d/libc.orig	2011-09-20 14:49:50.000000000 +0200
+++ /etc/resolvconf/update.d/libc	2011-09-20 15:12:46.000000000 +0200
@@ -92,8 +92,15 @@
 
 RSLVCNFFILES="$(/lib/resolvconf/list-records)"
 
+case "$BASEFILE_APPEND" in (y|Y|yes|YES|Yes)
+[ -f "$BASEFILE" ] && RSLVCNFFILES="$RSLVCNFFILES
+$BASEFILE"
+;;
+*)
 [ -f "$BASEFILE" ] && RSLVCNFFILES="$BASEFILE
 $RSLVCNFFILES"
+;;
+esac
 
 ### Compile list of nameservers ###
 NMSRVRS=""


More information about the Resolvconf-devel mailing list