소스 검색

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 달 전
부모
커밋
113241d77d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
             }
         }
     }