On 02/04/14 11:46, David Beveridge wrote: > So I have a few static hosts defined in /etc/hosts and I want to > serve authoritative records for them. > I also have some machines which get address via dhcp and slaac which I want > to publish using synth-domain. > > Each option works alone, but when I mix the options > eg > auth-zone=thekelleys.org.uk,192.168.0.0/24 > synth-domain=thekelleys.org.uk,192.168.0.0/24,internal- > > with synth-domain only > # dig internal-192-168-0-56.thekelleys.org.uk @184.108.40.206 > ;; ANSWER SECTION: > internal-192-168-0-56.thekelleys.org.uk. 0 IN A 192.168.0.56 > > with both defined, no answer is returned. > eg > root@ns1 /etc/dnsmasq.d # dig internal-192-168-0-56.thekelleys.org.uk @ > 220.127.116.11 > > ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> > internal-192-168-0-56.thekelleys.org.uk @18.104.22.168 > ;; global options: +cmd > ;; Got answer: > ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 768 > ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 > > ;; QUESTION SECTION: > ;internal-192-168-0-56.thekelleys.org.uk. IN A > > ;; Query time: 0 msec > ;; SERVER: 22.214.171.124#53(126.96.36.199) > ;; WHEN: Wed Apr 2 21:30:13 2014 > ;; MSG SIZE rcvd: 57 > > > The behaviour is the same for Ipv6.
This is, I think, just an oversight. synth-domain certainly generates "Locally defined DNS records" which is what the auth-zone is specified to contain. > > regards, > dave. > > PS: any reason why synth-domain is limited to /64 for IPv6? Prefix length has to be greater than or equal to 64, is that what you mean? It's about implementation convenience. C doesn't provide a integer data type larger than 64 bits for doing masking. of the address-part. Cheers, Simon. > > > > _______________________________________________ > Dnsmasq-discuss mailing list > Dnsmasqfirstname.lastname@example.org > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > _______________________________________________ Dnsmasq-discuss mailing list Dnsmasqemail@example.com http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss