[Dnsmasq-discuss] domain-search option "." (Re: Announce: dnsmasq-2.55)

Simon Kelley simon at thekelleys.org.uk
Fri Jun 11 21:11:20 BST 2010


clemens fischer wrote:
> Simon Kelley wrote:
> 
>> Well, this is real one. The heuristics that determine the data-type of
>> the option data get confused by "." and decide that it's an IP
>> address.  (I was testing the change with a list of search domains,
>> which was enough to make things work.)
>>
>> http://www.thekelleys.org.uk/dnsmasq/test-releases/dnsmasq-2.56test2.tar.gz
>>
>> Does a better job by a) making a better guess based on the text of the
>> option value and b) Using information about the expected data type for
>> known options.
> 
> If this is how it's supposed to work, it works.  Tcpdump says:  "T119
> Option 119, length 1: 0", dnsmasq-2.56test2 logs:  "2628496248 sent
> size:  1 option:119:domain-search  00".

That's what I would expect: a single zero byte is the correct 
representation of the the domain name "." in the encoding used, which is
<count> characters <count> characters <zero>, so

thekelleys.org.uk

is <10> thekelleys <3> org <2> uk <0>

The important thing is, does your DHCP client do the right thing with this?
> 
> BTW:  what does the number "2628496248" mean?  It can't be a date in
> unix seconds, and it certainly isn't the PID.
> 

It's a random transaction-id sent by the client and echoed back by the 
server, used to associate replies with requests, both by the client and 
  readers of the log.
> 

Cheers,

Simon.

> clemens
> 
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 




More information about the Dnsmasq-discuss mailing list