Ver código fonte

The CNAME output method in dnsmasq has been changed. Now the alias is given as an A record, since dnsmasq does not resolve the parent record, and the secondary one does not send the IP address to the CNAME.

root 5 meses atrás
pai
commit
113241d77d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      scripts/print-dnsmasq.pl

+ 1 - 1
scripts/print-dnsmasq.pl

@@ -162,7 +162,7 @@ if (!$row->{dns_ptr_only} and $dns_name) {
             $dns_alias =~s/-$//g;
             $dns_alias = trim($dns_alias);
             if ($dns_alias and $dns_alias !~ /\.\Q$domain_name\E$/i) { $dns_alias = $dns_alias .".".$domain_name; }
-            print "cname=".$dns_alias.",".$dns_name."\n" if ($dns_alias);
+            print 'address=/'.$dns_alias.'/'.$row->{ip}."\n" if ($dns_alias);
             }
         }
     }