summaryrefslogtreecommitdiff
path: root/templates/system/domain-name
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2011-02-25 09:07:41 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2011-02-25 09:07:41 -0800
commit6c9f83f6bcf081973f25c7564cc61ba07ae2cfd2 (patch)
tree5d7f2c464c0bb85e3ca6b9e290a449d5948568ba /templates/system/domain-name
parentb541f5ffa7bf1c6951e01ae4814e0cd38adc42d5 (diff)
downloadvyatta-cfg-system-6c9f83f6bcf081973f25c7564cc61ba07ae2cfd2.tar.gz
vyatta-cfg-system-6c9f83f6bcf081973f25c7564cc61ba07ae2cfd2.zip
Validate domain and host name
Bug 6243 More complete validation of host name and domain name
Diffstat (limited to 'templates/system/domain-name')
-rw-r--r--templates/system/domain-name/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/system/domain-name/node.def b/templates/system/domain-name/node.def
index e5d5af7e..87f9e0fa 100644
--- a/templates/system/domain-name/node.def
+++ b/templates/system/domain-name/node.def
@@ -3,7 +3,7 @@ type: txt
help: System domain name
# Allow letter-number-hyphen in label (but can not start or end with hyphen)
-syntax:expression: pattern $VAR(@) "^[a-zA-Z0-9](([-a-zA-Z0-9]*[a-zA-Z0-9])?\.)*[a-zA-Z]+$" ; "invalid domain name $VAR(@)"
+syntax:expression: exec "/opt/vyatta/sbin/vyatta_check_domainname.pl $VAR(../host-name).$VAR(@)"
# also add localhost line into /etc/hosts (see host-name template)?
update: sudo /opt/vyatta/sbin/vyatta_update_resolv.pl