Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different results for q com NS vs q com. NS #51

Closed
alex-feel opened this issue Jun 29, 2023 · 1 comment
Closed

Different results for q com NS vs q com. NS #51

alex-feel opened this issue Jun 29, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@alex-feel
Copy link

I've noticed inconsistent behaviour when performing NS record queries using the q utility. The queries q com NS and q com. NS return different results.

Here are the results I get:

For q com NS:

. 142h41m30s NS a.root-servers.net.
. 142h41m30s NS b.root-servers.net.
. 142h41m30s NS c.root-servers.net.
. 142h41m30s NS d.root-servers.net.
. 142h41m30s NS e.root-servers.net.
. 142h41m30s NS f.root-servers.net.
. 142h41m30s NS g.root-servers.net.
. 142h41m30s NS h.root-servers.net.
. 142h41m30s NS i.root-servers.net.
. 142h41m30s NS j.root-servers.net.
. 142h41m30s NS k.root-servers.net.
. 142h41m30s NS l.root-servers.net.
. 142h41m30s NS m.root-servers.net.

And for q com. NS:

com. 47h7m22s NS a.gtld-servers.net.
com. 47h7m22s NS b.gtld-servers.net.
com. 47h7m22s NS c.gtld-servers.net.
com. 47h7m22s NS d.gtld-servers.net.
com. 47h7m22s NS e.gtld-servers.net.
com. 47h7m22s NS f.gtld-servers.net.
com. 47h7m22s NS g.gtld-servers.net.
com. 47h7m22s NS h.gtld-servers.net.
com. 47h7m22s NS i.gtld-servers.net.
com. 47h7m22s NS j.gtld-servers.net.
com. 47h7m22s NS k.gtld-servers.net.
com. 47h7m22s NS l.gtld-servers.net.
com. 47h7m22s NS m.gtld-servers.net.

This differs from the behaviour of the dig utility, which treats both queries as FQDNs and returns the same results.

My questions are:

  1. Is this difference in behaviour intended?
  2. Shouldn't q treat the domain name as an FQDN by default, even if it does not end with a period?
@natesales natesales self-assigned this Jul 1, 2023
@natesales natesales added the bug Something isn't working label Jul 1, 2023
@natesales
Copy link
Owner

Indeed a bug! Will be fixed in an upcoming release tonight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants