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

Add structures for EDNS and NSID option #342

Merged
merged 5 commits into from
Sep 15, 2023
Merged

Conversation

bayerhonza
Copy link
Contributor

Hello,

I added some structures and tests to show data included in EDNS such as client subnet (source scope filled by the resolver), NSID, and extended DNS errors. Now this information appears in the result JSON object in this form:

echo "dnssec.fail" | ./zdns --name-servers 1.1.1.1  a 

results in:

{"data":{"additionals":[{"ede":{"error_text":"DNSKEY Missing","extra_text":"no SEP matching the DS found for dnssec.fail.","info_code":9},"flags":"","type":"EDNS0","udpsize":1232,"version":0}],"protocol":"udp","resolver":"1.1.1.1:53"},"name":"dnssec.fail","status":"SERVFAIL","timestamp":"2023-07-01T10:00:00+00:00"}

Feel free to accept this pull request if you think it would be appreciated.

@bayerhonza bayerhonza requested a review from a team as a code owner September 14, 2023 14:42
@zakird zakird merged commit 84665d1 into zmap:main Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants