IPv6 only query not sent
We confirmed that only IPv6 query will not be sent when configuring interface by config as below.
net.listen ({net.lo, net.eth0}, 53, {tls = true})
It is confirmed that specifying the interface as below does not cause a problem.
net.listen ({'127.0.0.1', ':: 1', '192.168.1.223', '240b:xxxx:xxxx:xxxx:10::223'}, 53, true)
As far as netstat sees, it confirms that it is bound to the interface.
$ sudo netstat -antp | grep kresd
Tcp 0 0 192.168.122.223: 53 0.0.0.0: LISTEN 6627 / kresd
Tcp 0 0 192.168.122.223: 53 0.0.0.0: LISTEN 6626 / kresd
Tcp 0 0 127.0.0.1: 53 0.0.0.0: LISTEN 6627 / kresd
Tcp 0 0 127.0.0.1: 53 0.0.0.0: LISTEN 6626 / kresd
Tcp 6 0 0 240 b: 11: 8500: 3900: 10: 53 ::: * LISTEN 6627 / kresd
Tcp 6 0 0 240 b: 11: 8500: 3900: 10: 53 ::: * LISTEN 6626 / kresd
Tcp 6 0 0 :: 1: 53 ::: * LISTEN 6627 / kresd
Tcp 6 0 0 :: 1: 53 ::: * LISTEN 6626 / kresd
However, if you check with drill, it will result in an error.
$ drill @ 192.168.122.223 ariel.kometch.local AAAA
Error: error sending query: Could not send or receive, because of network error
net.listen ({'127.0.0.1', ':: 1', '192.168.1.223', '240b:xxxx:xxxx:xxxx:10::223'}, 53, true
In the above case there is no problem and the query is sent.
$ drill @ 192.168.1.223 ariel.kometch.local AAAA
;; - >> HEADER << - opcode: QUERY, rcode: NOERROR, id: 6348
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 0
;; QUESTION SECTION:
;; ariel.kometch.local. IN AAAA
;; ANSWER SECTION:
ariel.kometch.local. 300 IN AAAA 240b:xxxx:xxxx:xxxx:10::30
;; AUTHORITY SECTION:
kometch.local. 300 IN NS dns01.Kometch.
kometch.local. 300 IN NS dns02.kometch.
kometch.local. 300 IN NS dns03.kometch.
;; ADDITIONAL SECTION:
;; Query time: 2 msec
;; SERVER: 192.168.122.223
;; WHEN: Sun Jan 1 20: 31: 33 2017