Open HeMan opened 4 months ago
I am starting to think I may not want to support this - I wrote support on this branch just for one cached address. https://github.com/cnlohr/minimdnsd/commit/35b403dcbd3735e05019860d12fed7bf28d5af23 and it really uglies things up.
I am starting to think if you want to do IPv6, then request it on IPv6.
Do you have strong feelings towards this? It seems not worth it for such a specific issue.
Maybe it's worth it to instead of caching, just get the addresses every time...
Ok, I literally cannot test this. How are you getting something to request the AAAA record?
Ah, there's also this - https://github.com/cnlohr/minimdnsd/commit/1724dfd27557773f6c513fce415062279d9d05a0
But still, I have no way to test.
I requested it with avahi-resolve:
$ avahi-resolve -6 -n suxhost.local
suxhost.local ::ffff:224.0.0.251
Having /etc/nsswitch.conf contain this hosts-line does also try to resolve AAAA over IPv4 with for example ping -6
hosts: files mdns_minimal [NOTFOUND=return] dns mymachines mdns
When resolving an AAAA record over IPv4 it returns the multicast address (224.0.0.251) as an IPv4-mapped IPv6 addres (::ffff:224.0.0.251).
It should instead return all IPv6-addresses on that interface.