From 4cc7a82c9490a3c5ae03b1d6d168ce40ba499e23 Mon Sep 17 00:00:00 2001 From: Eugene Yakubovich Date: Tue, 1 Jul 2014 11:58:49 -0700 Subject: networkd: send hostname to dhcp server Send hostname (option 12) in DISCOVER and REQUEST messages so the DHCP server could use it to register with dynamic DNS and such. To opt-out of this behaviour set SendHostname to false in [DHCP] section of .network file [tomegun: rebased, made sure a failing set_hostname is a noop and moved config from DHCPv4 to DHCP] --- man/systemd.network.xml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'man') diff --git a/man/systemd.network.xml b/man/systemd.network.xml index 707ced13d2..2b0eb567be 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -404,6 +404,13 @@ be used on the current link. Defaults to false. + + SendHostname= + + When true (the default), the machine's hostname will be sent to the DHCP + server + + UseHostname= -- cgit v1.2.3-54-g00ecf