Index: /trunk/DNSDB.pm
===================================================================
--- /trunk/DNSDB.pm	(revision 832)
+++ /trunk/DNSDB.pm	(revision 833)
@@ -3,5 +3,5 @@
 ##
 # $Id$
-# Copyright 2008-2021 Kris Deugau <kdeugau@deepnet.cx>
+# Copyright 2008-2022 Kris Deugau <kdeugau@deepnet.cx>
 # 
 #    This program is free software: you can redistribute it and/or modify
@@ -1083,6 +1083,7 @@
 
     # SRV target check - IP addresses not allowed.  Must be a more or less well-formed hostname.
+    # Allow a bare . to indicate "this service does not exist"
     return ('FAIL', "SRV records cannot point directly to an IP address")
-      if ${$args{val}} =~ /^(?:[\d.]+|[0-9a-fA-F:]+)$/;
+      if ${$args{val}} ne '.' && ${$args{val}} =~ /^(?:[\d.]+|[0-9a-fA-F:]+)$/;
   } else {
     # hm.  we can't do anything sane with IP values here;  part of the record data is in
@@ -1098,6 +1099,7 @@
 
     # SRV target check - IP addresses not allowed.  Must be a more or less well-formed hostname.
+    # Allow a bare . to indicate "this service does not exist"
     return ('FAIL', "SRV records cannot point directly to an IP address")
-      if ${$args{host}} =~ /^(?:[\d.]+|[0-9a-fA-F:]+)$/;
+      if ${$args{host}} ne '.' && ${$args{host}} =~ /^(?:[\d.]+|[0-9a-fA-F:]+)$/;
 
     # SRV records in reverse zones get stricter treatment.  The UI bars adding them in
