-
Notifications
You must be signed in to change notification settings - Fork 17
Description
I have a router with built-in DNS server capabilities. It's behaving in the following way:
- When it's queried for a name that has multiple IP addresses, it returns all of them in the ANSWER section.
- When it's queried again in the following few seconds, it returns just a single answer in the ADDITIONAL section.
Now, I'm not sure why, but when an answer contains multiple responses, nsncd seems to repeat the query. If the DNS server responds again with multiple responses, everything is fine, and nsncd answers on its front-end socket with a single IP address. But when I use the DNS server described above, it returns a strange response upon receiving the upstream strange response:
For comparison, here's a good response with google.com's IP address (it seems to always return just one IP address from both my strange DNS server, as well as 8.8.8.8):

I don't know much about rust, neither about nsncd in particular. I'm a NixOS user with access to this peculiar DNS server for only a few days. So anyone debugging this please do let me know if you want me to provide additional information.