[Dnsmasq-discuss] --addn-hosts BUG when different domain have the same record.
李乐
78369882 at qq.com
Wed Sep 25 08:51:40 BST 2013
when i use dnsmasq like this :
/usr/sbin/dnsmasq -a 127.0.0.1 -c 1000 --resolv-file=/etc/resolv.dnsmasq --no-negcache --all-servers --local-ttl=60 --localise-queries --addn-hosts=/etc/hosts.book
the file hosts.book:
0> cat /etc/hosts.book
# Do not remove the following line, or various programs
# that require network functionality will fail.
# test
21.129.198.120 rr.dnsmasq.com
212.138.4.105 rr.dnsmasq.com #the ip-address is as same as the tt.dnsmasq.com
211.119.170.50 rr.dnsmasq.com #the ip-address is as same as the tt.dnsmasq.com
121.15.89.121 rr.dnsmasq.com
10.13.1.105 rr.dnsmasq.com
21.109.175.5 tt.dnsmasq.com
211.119.170.50 tt.dnsmasq.com #the ip-address is as same as the rr.dnsmasq.com
212.138.4.105 tt.dnsmasq.com #the ip-address is as same as the rr.dnsmasq.com
when i ping tt.dnsmasq.com,the result is all the same every time(21.109.175.5) ,so i can't have the other ip address,and the dig result also have the same problem. every time 21.109.175.5 is the first value.i think this is a bug.
0> dig tt.dnsmasq.com
; <<>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6 <<>> tt.dnsmasq.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4946
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;tt.dnsmasq.com. IN A
;; ANSWER SECTION:
tt.dnsmasq.com. 60 IN A 21.109.175.5
tt.dnsmasq.com. 60 IN A 212.138.4.105
tt.dnsmasq.com. 60 IN A 211.119.170.50
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Sep 25 15:34:26 2013
;; MSG SIZE rcvd: 80
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20130925/aa2fd668/attachment.html>
More information about the Dnsmasq-discuss
mailing list