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

allow to query NS on root or tld nameservers #98

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

scuben
Copy link
Contributor

@scuben scuben commented Sep 5, 2022

My current usecase is to fetch the authoritative nameservers for a given domain starting from the root nameservers. Thus i query a root nameserver for the tld (e.g. .ch) with type NS. With the DnsGetRecord Handler that worked well (I guess partly because dns_get_records does not support to use a specific nameserver). After switching to Dig Handler my code was broken because of the +noall cli argument for dig. With this PR I added +authority (and +answer which is not necessary but declarative this way) to the cli arguments which then show the nameservers under the AUTHORITY section.

@freekmurze freekmurze merged commit e73eb8f into spatie:main Sep 6, 2022
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants