We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92b5f23 commit fb2b255Copy full SHA for fb2b255
net_help.sh
@@ -52,7 +52,9 @@ EOF
52
}
53
54
SetDNS() {
55
- /usr/bin/grep -c 'files dns' $ALTROOT/etc/resolv.conf 2> /dev/null > /dev/null || EnableDNS
+# NOTE: If the nsswitch.conf file specifies DNS in a manner other than:
56
+# "files dns", setting EnableDNS will have to become more sophisticated.
57
+ /usr/bin/grep -c 'files dns' $ALTROOT/etc/nsswitch.conf 2> /dev/null > /dev/null || EnableDNS
58
59
for srv in $*; do
60
echo nameserver $srv >> $ALTROOT/etc/resolv.conf
0 commit comments