[ipxe-devel] double null byte in dns_make_name()

Christian Hesse list at eworm.de
Sat Jan 7 13:50:01 UTC 2012


Michael Brown <mbrown at fensystems.co.uk> on Sat, 7 Jan 2012 00:19:53 +0000:
> On Wednesday 28 Dec 2011 07:50:56 Christian Hesse wrote:
> > the dns resolver from current git does not work for me. Taking a look at
> > the network layer I found there's a double null byte added in
> > dns_make_name() causing the nameserver to not understand the query type
> > and class. The attached patch fixes this.
> 
> Applying your patch causes malformed DNS requests for me.  That trailing
> NUL marks the end of the name being queried.
> 
> Could you send a packet capture showing the "double null" behaviour that
> you describe?

I will do anytime next week.

Just an idea that came to my mind just right now... Is a dot at the end
of the name handled differently? I had sat the path to "http://pxe./script".
-- 
Schoene Gruesse
Chris



More information about the ipxe-devel mailing list