David Beveridge
2014-04-02 10:46:55 UTC
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 @223.27.66.79
;; 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
***@ns1 /etc/dnsmasq.d # dig internal-192-168-0-56.thekelleys.org.uk @
223.27.66.79
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>>
internal-192-168-0-56.thekelleys.org.uk @223.27.66.79
;; 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: 223.27.66.79#53(223.27.66.79)
;; WHEN: Wed Apr 2 21:30:13 2014
;; MSG SIZE rcvd: 57
The behaviour is the same for Ipv6.
regards,
dave.
PS: any reason why synth-domain is limited to /64 for IPv6?
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 @223.27.66.79
;; 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
***@ns1 /etc/dnsmasq.d # dig internal-192-168-0-56.thekelleys.org.uk @
223.27.66.79
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>>
internal-192-168-0-56.thekelleys.org.uk @223.27.66.79
;; 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: 223.27.66.79#53(223.27.66.79)
;; WHEN: Wed Apr 2 21:30:13 2014
;; MSG SIZE rcvd: 57
The behaviour is the same for Ipv6.
regards,
dave.
PS: any reason why synth-domain is limited to /64 for IPv6?