Skip to content

Commit

Permalink
Fixup for pull request #3 - DNS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan McDonald committed Sep 18, 2014
1 parent 92b5f23 commit fb2b255
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net_help.sh
Expand Up @@ -52,7 +52,9 @@ EOF
}

SetDNS() {
/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:
# "files dns", setting EnableDNS will have to become more sophisticated.
/usr/bin/grep -c 'files dns' $ALTROOT/etc/nsswitch.conf 2> /dev/null > /dev/null || EnableDNS

for srv in $*; do
echo nameserver $srv >> $ALTROOT/etc/resolv.conf
Expand Down

0 comments on commit fb2b255

Please sign in to comment.