diff --git a/dyndns.cfg.dist b/dyndns.cfg.dist index 955be56..62030fc 100644 --- a/dyndns.cfg.dist +++ b/dyndns.cfg.dist @@ -6,13 +6,13 @@ # DNS Settings #dns_server = 192.168.1.1 # DNS Server to communicate with (use IP!) -dns_domain = ?, !, 1 # DNS Domain to support, match hostname with: - # '?' - take domain name from parameter 'domain' - # '!' - take domain name from virtualhost name - # positive number - last # parts from hostname - # negative number - last # parts from virtualhost - # any other string - use if hostname ends on this - +#dns_domain = ?, !, 1 # DNS Domain to support, match hostname with: + # '?': take domain name from parameter 'domain' + # '!': take domain name from virtualhost name + # 0: take domain from hostname + # positive number: last # parts from hostname + # negative number: last # parts from virtualhost + # any other string: use if hostname ends on it #expand_cnames = 1 # CNAME levels to expand (0 to disable) #require_rr = # Require existing record of this type to update diff --git a/dyndns.pl b/dyndns.pl index c0971dd..63e0e71 100755 --- a/dyndns.pl +++ b/dyndns.pl @@ -31,12 +31,13 @@ my $ConfigFile = 'optional'; # hardcoded, either optional, required or ignore ############################## # Configuration section (defaults, can be set in config file) my $DNSServer = '192.168.1.1'; # DNS Server to communicate with (use IP!) -my @DNSDomain = ( '?', '!', 0 ); # DNS Domain to support, matches hostname with: - # '?' - take domain name from parameter 'domain' - # '!' - take domain name from virtualhost name - # positive number - last # parts from hostname - # negative number - last # parts from virtualhost - # any other string - use if hostname ends on this +my @DNSDomain = ( '?', '!', 0 ); # DNS Domain to support, match hostname with: + # '?': take domain name from parameter 'domain' + # '!': take domain name from virtualhost name + # 0: take domain from hostname + # positive number: last # parts from hostname + # negative number: last # parts from virtualhost + # any other string: use if hostname ends on it my $ExpandCNAMEs = 1; # CNAME levels to expand (0 to disable) my $AllowDebugKey = 'off'; # Debuging, 'off' to disable, '' for always on # and other values to enable with debug= param.