Library to encode and decode DNS messages