Skip to content

Commit fb2b255

Browse files
author
Dan McDonald
committedSep 18, 2014
Fixup for pull request #3 - DNS fixes
1 parent 92b5f23 commit fb2b255

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎net_help.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ EOF
5252
}
5353

5454
SetDNS() {
55-
/usr/bin/grep -c 'files dns' $ALTROOT/etc/resolv.conf 2> /dev/null > /dev/null || EnableDNS
55+
# 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
5658

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

0 commit comments

Comments
 (0)
Please sign in to comment.