[Pdns-dev] KEY Record
Norbert Sendetzky
norbert at linuxnetworks.de
Fri Jun 27 20:19:00 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I've tried to implement KEY records according to RFC 2535, but ran
into a problem:
Key record RData should be plain and simple look like this:
1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| flags | protocol | algorithm |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| /
/ public key /
/ /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
but if I fill in this values:
(flags) (proto) (algo) (teststring, base64 encoded)
512 4 3 dGVzdHN0cmluZw==
I don't get a correct answer by using "dig" or "host". "dig" lists an
answer packet but outputs nothing and "host" tells me:
;; Warning: Message parser reports malformed message packet.
So, what's wrong with my packets? Can anyone give me a hint?
See patch attached for implementation.
Norbert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE+/HyExMLs5v5/7eARAgQ3AJ9VHEyIzHlG0ASuvyfq4OVPYG2hpgCfccF0
H2ph/wN6nwcLOuq88yLzk7w=
=cDW6
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keyrecord.diff
Type: text/x-diff
Size: 3515 bytes
Desc: not available
Url : http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20030627/f997d442/keyrecord.bin
More information about the Pdns-dev
mailing list