3 domain=`(. /boot.conf; echo "$DNSDOMAINNAME") 2>/dev/null`
5 echo "# This file is automagically regenerated with each boot"
7 test "$domain" && echo "domain $domain"
8 test "$domain" && echo "search $domain"
10 echo "# Note that nslookup can choke on DNS server which itself"
11 echo "# does NOT have domain name. Other things can work fine."
13 # # If we run DNS cache:
14 # echo "nameserver 127.0.0.1"
18 i=0; while test "${if[$i]}"; do
19 test x"${dns_prio[$i]}" != x"" \
20 && test "${dns_prio[$i]}" -gt "$prio" \
21 && prio="${dns_prio[$i]}"
24 i=0; while test "${if[$i]}"; do
25 for d in ${dns[$i]}; do
27 test x"$p" == x"" && p=0
28 test x"$p" == x"$prio" || continue