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 API to support meaningful comments? #58

Open
k0ekk0ek opened this issue May 2, 2023 · 1 comment
Open

Add API to support meaningful comments? #58

k0ekk0ek opened this issue May 2, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Milestone

Comments

@k0ekk0ek
Copy link
Contributor

k0ekk0ek commented May 2, 2023

OpenDNSSEC (maybe others too) uses comments to store signing state in the zone file itself. Therefore, it makes sense to expand the API and support returning these comments. Pending further information, the following two examples were provided to start planning the feature.

;;Key: locator ad06eeab0b0906e14ce2e27fb70d0425 algorithm 8 flags 256 publish 1 ksk 0 zsk 1 rfc5011 0
;;
example.com. 300 IN SOA ns1.example.com. postmaster.example.com.
example.com. 300 IN DNSKEY 256 3 8 AwEAAaVhvyRrg2vmOgiolwfvRHekdHGPUXt6OzNNz1iAMrwUx6S9yQ0L0IyUX0n2rcHIw5qgtoW0ZSkOMBT/1mS5CDUlvh3iba4BplYlEQ/XGYHxYoi0lYpsFiMgaDg9nOU03AkvjTFr1/0b8qXqgNWxR0EB+8s517T/BnDXo7S3ReLR ;{id = 46921 (zsk), size = 1024b}

The last example is ouput from ldns-signzone. There it only serves as information to the reader the parser will not interpret it.

@k0ekk0ek k0ekk0ek added enhancement New feature or request help wanted Extra attention is needed labels May 2, 2023
@k0ekk0ek k0ekk0ek added this to the Release 0.2.0 milestone May 2, 2023
@k0ekk0ek
Copy link
Contributor Author

k0ekk0ek commented May 4, 2023

Apparently Unbound uses similar tricks for trust anchors. If you run unbound-anchor -a root.key you'll get output like this:

; autotrust trust anchor file
;;id: . 1
;;last_queried: 1683198206 ;;Thu May  4 13:03:26 2023
;;last_success: 1683198206 ;;Thu May  4 13:03:26 2023
;;next_probe_time: 1683240986 ;;Fri May  5 00:56:26 2023
;;query_failed: 0
;;query_interval: 43200
;;retry_time: 8640
.	86400	IN	DNSKEY	257 3 8 AwEAAaz/tAm8yTn4Mfeh5eyI96WSVexTBAvkMgJzkKTOiW1vkIbzxeF3+/4RgWOq7HrxRixHlFlExOLAJr5emLvN7SWXgnLh4+B5xQlNVz8Og8kvArMtNROxVQuCaSnIDdD5LKyWbRd2n9WGe2R8PzgCmr3EgVLrjyBxWezF0jLHwVN8efS3rCj/EWgvIWgb9tarpVUDK/b58Da+sqqls3eNbuv7pr+eoZG+SrDK6nWeL3c6H5Apxz7LjVc1uTIdsIXxuOLYA4/ilBmSVIzuDWfdRUfhHdY6+cn8HFRm+2hM8AnXGXws9555KrUB5qihylGa8subX2Nn6UwNR1AkUTV74bU= ;{id = 20326 (ksk), size = 2048b} ;;state=2 [  VALID  ] ;;count=0 ;;lastchange=1683198206 ;;Thu May  4 13:03:26 2023

An example of an initial bootstrap file is:

example.com.    10800   IN      DS      55582 5 1 66e829ebd8145e6f030b840ae63b77273c9575e1 ; xiniv-mopov-rakoc-galuk-zibeb-ricob-penuf-rutad-lyzan-hetuv-caxox

@k0ekk0ek k0ekk0ek added the question Further information is requested label Jul 6, 2023
@k0ekk0ek k0ekk0ek changed the title Add API to support meaningful comments Add API to support meaningful comments? Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant