summaryrefslogtreecommitdiff
path: root/setup-dns.in
diff options
context:
space:
mode:
Diffstat (limited to 'setup-dns.in')
-rwxr-xr-xsetup-dns.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup-dns.in b/setup-dns.in
index fd6b04e..02d6cc0 100755
--- a/setup-dns.in
+++ b/setup-dns.in
@@ -18,7 +18,9 @@ done
echon "] "
default_read dns "$dns"
-echo "search $domain" > $conf
+if [ "$domain" != "" ]; then
+ echo "search $domain" > $conf
+fi
for i in $dns ; do
echo "nameserver $i" >> $conf
done