Commit 9cb9bf9e7ad6023d95b0b1de6659f6b8e519fea2

Authored by Frederik Lindenaar
1 parent a11b90b7

Corrected dns_domain / @DNSDomain descriptive comments

Showing 2 changed files with 14 additions and 13 deletions
dyndns.cfg.dist
@@ -6,13 +6,13 @@ @@ -6,13 +6,13 @@
6 # DNS Settings 6 # DNS Settings
7 #dns_server = 192.168.1.1 # DNS Server to communicate with (use IP!) 7 #dns_server = 192.168.1.1 # DNS Server to communicate with (use IP!)
8 8
9 -dns_domain = ?, !, 1 # DNS Domain to support, match hostname with:  
10 - # '?' - take domain name from parameter 'domain'  
11 - # '!' - take domain name from virtualhost name  
12 - # positive number - last # parts from hostname  
13 - # negative number - last # parts from virtualhost  
14 - # any other string - use if hostname ends on this  
15 - 9 +#dns_domain = ?, !, 1 # DNS Domain to support, match hostname with:
  10 + # '?': take domain name from parameter 'domain'
  11 + # '!': take domain name from virtualhost name
  12 + # 0: take domain from hostname
  13 + # positive number: last # parts from hostname
  14 + # negative number: last # parts from virtualhost
  15 + # any other string: use if hostname ends on it
16 16
17 #expand_cnames = 1 # CNAME levels to expand (0 to disable) 17 #expand_cnames = 1 # CNAME levels to expand (0 to disable)
18 #require_rr = # Require existing record of this type to update 18 #require_rr = # Require existing record of this type to update
dyndns.pl
@@ -31,12 +31,13 @@ my $ConfigFile = 'optional'; # hardcoded, either optional, required or ignore @@ -31,12 +31,13 @@ my $ConfigFile = 'optional'; # hardcoded, either optional, required or ignore
31 ############################## 31 ##############################
32 # Configuration section (defaults, can be set in config file) 32 # Configuration section (defaults, can be set in config file)
33 my $DNSServer = '192.168.1.1'; # DNS Server to communicate with (use IP!) 33 my $DNSServer = '192.168.1.1'; # DNS Server to communicate with (use IP!)
34 -my @DNSDomain = ( '?', '!', 0 ); # DNS Domain to support, matches hostname with:  
35 - # '?' - take domain name from parameter 'domain'  
36 - # '!' - take domain name from virtualhost name  
37 - # positive number - last # parts from hostname  
38 - # negative number - last # parts from virtualhost  
39 - # any other string - use if hostname ends on this 34 +my @DNSDomain = ( '?', '!', 0 ); # DNS Domain to support, match hostname with:
  35 + # '?': take domain name from parameter 'domain'
  36 + # '!': take domain name from virtualhost name
  37 + # 0: take domain from hostname
  38 + # positive number: last # parts from hostname
  39 + # negative number: last # parts from virtualhost
  40 + # any other string: use if hostname ends on it
40 my $ExpandCNAMEs = 1; # CNAME levels to expand (0 to disable) 41 my $ExpandCNAMEs = 1; # CNAME levels to expand (0 to disable)
41 my $AllowDebugKey = 'off'; # Debuging, 'off' to disable, '' for always on 42 my $AllowDebugKey = 'off'; # Debuging, 'off' to disable, '' for always on
42 # and other values to enable with debug= param. 43 # and other values to enable with debug= param.