Blame SOURCES/dnsmasq-2.66-numeric-hostnames.patch

a65ed4
diff --git a/src/util.c b/src/util.c
a65ed4
index af4031c..759099c 100644
a65ed4
--- a/src/util.c
a65ed4
+++ b/src/util.c
a65ed4
@@ -151,12 +151,12 @@ int legal_hostname(char *name)
a65ed4
     /* check for legal char a-z A-Z 0-9 - _ . */
a65ed4
     {
a65ed4
       if ((c >= 'A' && c <= 'Z') ||
a65ed4
-	  (c >= 'a' && c <= 'z'))
a65ed4
+	  (c >= 'a' && c <= 'z') ||
a65ed4
+	  (c >= '0' && c <= '9'))
a65ed4
 	continue;
a65ed4
 
a65ed4
       if (!first && 
a65ed4
-	  ((c >= '0' && c <= '9') ||
a65ed4
-	   c == '-' || c == '_'))
a65ed4
+	  (c == '-' || c == '_'))
a65ed4
 	continue;
a65ed4
 
a65ed4
       /* end of hostname part */