Skip to content

Can't handle "Additional" section #90

@ggPeti

Description

@ggPeti

I have a router with built-in DNS server capabilities. It's behaving in the following way:

  1. When it's queried for a name that has multiple IP addresses, it returns all of them in the ANSWER section.
image
  1. When it's queried again in the following few seconds, it returns just a single answer in the ADDITIONAL section.
image

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:

image image

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):
image


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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions