summaryrefslogtreecommitdiff
path: root/debvm-run
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2022-12-23 07:47:16 +0100
committerHelmut Grohne <helmut@subdivi.de>2022-12-23 07:47:16 +0100
commitfa29c199e7dfda1cc9c93f6948e8d9688c345d64 (patch)
treead1699aeafeb8a650864c30479369f13077ddf08 /debvm-run
parent04cc838b9e2ec01e5a6beed90f749f390c458441 (diff)
downloaddebvm-fa29c199e7dfda1cc9c93f6948e8d9688c345d64.tar.gz
debvm-run: change dhcp option for dns search
systemd on Debian stretch does not yet understand dnssearch aka dhcp option 119 and ignores it. Instead we pass it as domain name aka dhcp option 15. This option can only specify one name, which is what we do already. Beyond extending the search list, it may also affect the fqdn of the VM, but this shouldn't hurt.
Diffstat (limited to 'debvm-run')
-rwxr-xr-xdebvm-run2
1 files changed, 1 insertions, 1 deletions
diff --git a/debvm-run b/debvm-run
index ffae61c..06dd250 100755
--- a/debvm-run
+++ b/debvm-run
@@ -146,7 +146,7 @@ if test -n "$SSHPORT"; then
fi
DNSSEARCH=$(dnsdomainname)
if test -n "$DNSSEARCH"; then
- NETDEV="$NETDEV,dnssearch=$DNSSEARCH"
+ NETDEV="$NETDEV,domainname=$DNSSEARCH"
fi
set -- \
-append "$KERNEL_CMDLINE" \