summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-12-06 00:57:40 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-12-06 00:57:40 +0000
commitf9b5d5e5c746895607d8b667dc88bd3ad452e687 (patch)
tree56d6febbd69dbe53660c0410def7580b1056cfa1 /etc/inc
parentce69a638a337dc3f3860fd5e6bfb93dfcd278084 (diff)
downloadpfsense-f9b5d5e5c746895607d8b667dc88bd3ad452e687.zip
pfsense-f9b5d5e5c746895607d8b667dc88bd3ad452e687.tar.gz
The attached patch adds a field to the services_dyndns.php form.
This field if provided will be written to the nscommands file (in services.inc) as "server <value>\n" This allows you to update an arbitrary DNS server. If not provided, the server line is omitted and the default behavior occurs. Submitted-by: Ben Timby
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/services.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index cc42ee4..5327908 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -939,7 +939,10 @@ EOD;
fclose($fd);
/* generate update instructions */
- $upinst = "update delete {$config['dnsupdate']['host']} A\n";
+ $upinst = "";
+ if (!empty($config['dnsupdate']['server']))
+ $upinst .= "server {$config['dnsupdate']['server']}\n";
+ $upinst .= "update delete {$config['dnsupdate']['host']} A\n";
$upinst .= "update add {$config['dnsupdate']['host']} {$config['dnsupdate']['ttl']} A {$wanip}\n";
$upinst .= "\n"; /* mind that trailing newline! */
OpenPOWER on IntegriCloud