HIP record

Mark Andrews marka at isc.org
Sun Feb 19 20:09:04 UTC 2012


Both records are malformed.  Remove the whitespace from the public key.

   The Public Key field is represented as the Base64 encoding [RFC4648]
   of the public key.  The encoding MUST NOT contain whitespace(s) to
   distinguish it from the Rendezvous Servers field.

In message <20120219135619.GA24795 at miek.nl>, Miek Gieben writes:
> Hello,
> 
> While playing with the HIP record I wanted to place some test records
> in a zone. I used the examples from RFC 5205 (Section 6.).

And you failed to read the note immediately above them.

   In the examples below, the public key field containing no whitespace
   is wrapped since it does not fit in a single line of this document.

 
>     ;; Tests
>     t      IN  HIP ( 2 200100107B1A74DF365639CC39F1D578
>                                     AwEAAbdxyhNuSutc5EMzxTs9LBPCIkOFH8cIvM4p
>     9+LrV4e19WzK00+CI6zBCQTdtWsuxKbWIy87UOoJTwkUs7lBu+Upr1gsNrut79ryra+bSRGQ
>     b1slImA8YVJyuIDsj7kwzG7jnERNqnWxZ48AWkskmdHaVDP4BcelrTI3rMXdXF5D )
>     =20
>     t      IN  HIP ( 2 200100107B1A74DF365639CC39F1D578
>                                     AwEAAbdxyhNuSutc5EMzxTs9LBPCIkOFH8cIvM4p
>     9+LrV4e19WzK00+CI6zBCQTdtWsuxKbWIy87UOoJTwkUs7lBu+Upr1gsNrut79ryra+bSRGQ
>     b1slImA8YVJyuIDsj7kwzG7jnERNqnWxZ48AWkskmdHaVDP4BcelrTI3rMXdXF5D
>                                     rvs.example.com. )
> 
> Checking these with named-checkzone yields:
> 
>     loading "evilquery.nl" from "evilquery.nl" class "IN"
>     dns_rdata_fromtext: evilquery.nl:30: near '9+LrV4e19WzK00+CI6zBCQTdtWsu=
> xKbWIy87UOoJTwkUs7lBu+Upr1gsNrut79ryra+bSRGQ': label too long
>     dns_rdata_fromtext: evilquery.nl:35: near '9+LrV4e19WzK00+CI6zBCQTdtWsu=
> xKbWIy87UOoJTwkUs7lBu+Upr1gsNrut79ryra+bSRGQ': label too long
>     zone evilquery.nl/IN: loading from master file evilquery.nl failed: lab=
> el too long
>     zone evilquery.nl/IN: not loaded due to errors.
> 
> This is with bind9.7.3. I think records are OK and bind should be able to p=
> arse
> them?
> 
>  grtz,
> 
> --
>     Miek
> 
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org



More information about the bind-users mailing list