From 9cb9bf9e7ad6023d95b0b1de6659f6b8e519fea2 Mon Sep 17 00:00:00 2001
From: Frederik Lindenaar <frederik@lindenaar.nl>
Date: Mon, 5 Aug 2019 21:04:59 +0200
Subject: [PATCH] Corrected dns_domain / @DNSDomain descriptive comments

---
 dyndns.cfg.dist | 14 +++++++-------
 dyndns.pl       | 13 +++++++------
 2 files changed, 14 insertions(+), 13 deletions(-)

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.
--
libgit2 0.22.2