summaryrefslogtreecommitdiff
path: root/debvm-run
diff options
context:
space:
mode:
authorHelmut Grohne <helmutg@debian.org>2022-12-23 09:51:27 +0000
committerHelmut Grohne <helmutg@debian.org>2022-12-23 09:51:27 +0000
commit9da1fe822cc819bb2d117f968b14a348b8acb4a7 (patch)
tree8e2e98b7c34414c3fb85ce8c3cc71c78b042f350 /debvm-run
parentfcfd800af27d1aa3b7f6788e7bd4957faca2c82c (diff)
parent82720d195c6b243f8f3a610c555392d20745889b (diff)
downloaddebvm-9da1fe822cc819bb2d117f968b14a348b8acb4a7.tar.gz
Merge branch 'dns' into 'main'
Add a DNS resolver (Closes: #3) Closes #3 See merge request helmutg/debvm!7
Diffstat (limited to 'debvm-run')
-rwxr-xr-xdebvm-run4
1 files changed, 4 insertions, 0 deletions
diff --git a/debvm-run b/debvm-run
index 419c6ca..edb01ad 100755
--- a/debvm-run
+++ b/debvm-run
@@ -158,6 +158,10 @@ fi
if test -n "$SSHPORT"; then
NETDEV="$NETDEV,hostfwd=tcp:127.0.0.1:$SSHPORT-:22"
fi
+DNSSEARCH=$(dnsdomainname)
+if test -n "$DNSSEARCH"; then
+ NETDEV="$NETDEV,domainname=$DNSSEARCH"
+fi
set -- \
-append "$KERNEL_CMDLINE" \
-netdev "$NETDEV" \