Allow search domains and name servers to be appended.
[openresolv] / libc.in
diff --git a/libc.in b/libc.in
index 4ed75a2eaebe2d313136c3a3e016e0da8f7d86d1..0cc561d76fc0c20387db8f74f682c02d3435aa65 100644 (file)
--- a/libc.in
+++ b/libc.in
@@ -112,8 +112,8 @@ case "${resolv_conf_passthrough:-NO}" in
        ;;
 *)
        [ -z "$RESOLVCONF" ] && eval "$(@PREFIX@/sbin/resolvconf -v)"
-       newsearch="$(uniqify $search_domains $SEARCH)"
-       newns="$(uniqify $name_servers $NAMESERVERS)"
+       newsearch="$(uniqify $search_domains $SEARCH $search_domains_append)"
+       newns="$(uniqify $name_servers $NAMESERVERS $name_servers_append)"
 
        # Hold our new resolv.conf in a variable to save on temporary files
        newconf="# Generated by resolvconf\n"