From b6810edc7c31b171116c8ab87b3a25bee5727b7c Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 16 May 2018 07:40:54 +0200 Subject: T574: fix the hostname configuration script and add the domain-name command. Fix multiple syntax errors. Restart rsyslog after update since it uses the hostname. Write the 127.0 entry to /etc/hosts, since sudo complains when it cannot resolve it. --- interface-definitions/host-name.xml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'interface-definitions') diff --git a/interface-definitions/host-name.xml b/interface-definitions/host-name.xml index 1452a956a..4ab244f6a 100644 --- a/interface-definitions/host-name.xml +++ b/interface-definitions/host-name.xml @@ -5,18 +5,22 @@ - + System host name (default: vyos) + + [A-Za-z0-9][-.A-Za-z0-9]*[A-Za-z0-9] + - - - - System host name (default: vyos) - - - - + + + + System domain name + + [A-Za-z0-9][-.A-Za-z0-9]* + + + - \ No newline at end of file + -- cgit v1.2.3