Hi Werner,

Net::DNS::DomainName::decode is the "official" replacement for
Net::DNS::Packet::dn_expand:

  $object = decode Net::DNS::DomainName( \$buffer, $offset, $hash );

( $object, $next ) = decode Net::DNS::DomainName(
                                         \$buffer, $offset, $hash );

Creates a domain name object which represents the DNS domain name
identified by the wire-format data at the indicated offset within the
data buffer.

The argument list consists of a reference to a scalar containing the
wire-format data and specified offset. The optional reference to a hash
table provides improved efficiency of decoding compressed names by
exploiting already cached compression pointers.

The returned offset value indicates the start of the next item in the
data buffer.

Cheers,

-- Willem

PS.  You might want to subscribe to our users list at
http://nlnetlabs.nl/mailman/listinfo/net-dns-users .  We announce
release candidates for Net::DNS and Net::DNS::SEC on it so you can try
them out and make sure backwards compatibility isn't broken.


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to