summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGaurav Sinha <gaurav.sinha@vyatta.com>2011-11-09 16:41:34 -0800
committerGaurav Sinha <gaurav.sinha@vyatta.com>2011-11-09 16:41:34 -0800
commit4ada945314b7779e84d0059ed2ffeda2da44a78d (patch)
tree860e851f4f6999e0d0cd3c03c73b9fd406047bd6 /templates
parentf993ea0c32500b4754d4e0f76ecac67eec744796 (diff)
downloadvyatta-cfg-quagga-4ada945314b7779e84d0059ed2ffeda2da44a78d.tar.gz
vyatta-cfg-quagga-4ada945314b7779e84d0059ed2ffeda2da44a78d.zip
Adding CLI option for domain overrides for DNS forwarding, bug id 4086
Diffstat (limited to 'templates')
-rw-r--r--templates/service/dns/forwarding/domain/node.def4
-rw-r--r--templates/service/dns/forwarding/domain/node.tag/server/node.def2
2 files changed, 6 insertions, 0 deletions
diff --git a/templates/service/dns/forwarding/domain/node.def b/templates/service/dns/forwarding/domain/node.def
new file mode 100644
index 00000000..bdd82752
--- /dev/null
+++ b/templates/service/dns/forwarding/domain/node.def
@@ -0,0 +1,4 @@
+tag:
+type: txt
+help: DNS domain to forward to a local server
+commit:expression: $VAR(./server/) != ""; "Error: No server configured for the domain $VAR(@)"
diff --git a/templates/service/dns/forwarding/domain/node.tag/server/node.def b/templates/service/dns/forwarding/domain/node.tag/server/node.def
new file mode 100644
index 00000000..3dec7d5d
--- /dev/null
+++ b/templates/service/dns/forwarding/domain/node.tag/server/node.def
@@ -0,0 +1,2 @@
+type: ipv4
+help: DNS server to forward queries