[Dnsmasq-discuss] Question about the behavior of options 66 and 67

2018-07-24 Thread Shankar Unni
One of our users ran into an interesting issue.   

They have IP phones that explicitly request options 66 and 67 as part of their 
DHCP Parameter Request List of the DISCOVER/REQUEST, but still expect the 
resultant OFFER/ACK to return those values in the “sname” and “file” fields 
(within the “bootp” portion of the packet), rather than as DHCP Options.   (I 
guess they don’t care if the response also contains them as Options, but they 
definitely only look for these values in the sname and file fields).

Dnsmasq seems to behave differently: if the client asks for 66 or 67, they 
always get them back as DHCP Options (and sname and file are left empty); if 
they don’t ask (but the server is configured for these options), then dnsmasq 
stuffs them into the “sname” and “file” fields.   (Other vendors they use, 
however - like Cisco Meraki and Aricent - seem to behave the way I described in 
the previous paragraph.)

Is this a deliberate choice?   Is there any way to get dnsmasq to do what these 
IP phones seem to expect (i.e. always stuff options 66 and 67 into sname and 
file, regardless of whether they are asked for as DHCP options)? 

Thanks in advance!

- --
Shankar


___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] local dns broke

2018-07-24 Thread Carl Karsten
 adding domain=home helped sort of. I can now resolve other names on
my lan, but still not pc8.

pc8 is dnsmasq dhcp/dns for my lan, static ip 192.168.1.8
twist is ubunut xenial, seems to work ok
dc10b is ubuntu bionic that won't resolve pc8 unless I tell it server
192.168.1.8

before setting domain=home

carl@twist:~$ host dc10b
dc10b has address 192.168.1.185
carl@twist:~$ host pc8
pc8 has address 192.168.1.8

juser@dc10b:~$ host twist
Host twist not found: 2(SERVFAIL)
juser@dc10b:~$ host pc8
Host pc8 not found: 2(SERVFAIL)

after  /etc/dnsmasq.d/local.conf
domain=home

carl@twist:~$ host dc10b
dc10b.home has address 192.168.1.185
carl@twist:~$ host pc8
pc8 has address 192.168.1.8
carl@twist:~$ host pc8.home
Host pc8.home not found: 3(NXDOMAIN)

juser@dc10b:~$ host twist
twist.home has address 192.168.1.199
juser@dc10b:~$ host twist.home
twist.home has address 192.168.1.199
juser@dc10b:~$ host pc8
Host pc8 not found: 2(SERVFAIL)
juser@dc10b:~$ host pc8.home
Host pc8.home not found: 3(NXDOMAIN)


juser@dc10b:~$ host pc8 192.168.1.8
Using domain server:
Name: 192.168.1.8
Address: 192.168.1.8#53
pc8 has address 192.168.1.8

juser@dc10b:~$ host pc8.home 192.168.1.8
Using domain server:
Name: 192.168.1.8
Address: 192.168.1.8#53
Host pc8.home not found: 3(NXDOMAIN)





On Tue, Jul 24, 2018 at 3:03 AM, john doe  wrote:
> On 7/24/2018 7:47 AM, Carl Karsten wrote:
>>
>> On Tue, Jul 24, 2018 at 12:32 AM, Geert Stappers 
>> wrote:
>>>
>>> On Mon, Jul 23, 2018 at 06:02:02PM -0500, Carl Karsten wrote:

 On Mon, Jul 23, 2018 at 4:16 PM, Geert Stappers 
 wrote:
>
>
> What do the other client fine that the netplan client doesn't do?
>

 resolve local names.

 xenial box:
 carl@twist:~$ host pc8
 pc8 has address 192.168.1.8

 carl@twist:~$ host trist
 trist has address 192.168.1.156

 bionic netplan:
 juser@dc10b:~$ host pc8
 Host pc8 not found: 2(SERVFAIL)
 juser@dc10b:~$ host trist
 Host trist not found: 2(SERVFAIL)

 juser@dc10b:~$ host pc8 192.168.1.8
 Using domain server:
 Name: 192.168.1.8
 Address: 192.168.1.8#53
 Aliases:
 pc8 has address 192.168.1.8

 juser@dc10b:~$ host trist 192.168.1.8
 Using domain server:
 Name: 192.168.1.8
 Address: 192.168.1.8#53
 Aliases:
 trist has address 192.168.1.156


 juser@dc10b:~$ cat /run/systemd/resolve/resolv.conf
 # [comments removed]
 nameserver 192.168.1.8

 juser@dc10b:~$ cat /etc/resolv.conf
 nameserver 127.0.0.53
>>>
>>>
>>>
>>> My guess is that a domain name is missing, dc10b correct and twist wrong.
>>
>>
>> ah right, I don't have
>> domain=something.com
>>
>> I'm not sure I have gotten a straight answer about if/what domain name
>> I should plug in.
>> I have no interest of these names resolving outside of my lan, so what
>> name should I use?
>>
>
> One of those TLDS (.home' seems reasonable)'
>   home
>   internal
>   intranet
>   lan
>   local
>   private
>   test
>
> Also have a look online for private TLDS, there is more to this.
>
> --
> John Doe
>
>
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

On Tue, Jul 24, 2018 at 3:03 AM, john doe  wrote:
> On 7/24/2018 7:47 AM, Carl Karsten wrote:
>>
>> On Tue, Jul 24, 2018 at 12:32 AM, Geert Stappers 
>> wrote:
>>>
>>> On Mon, Jul 23, 2018 at 06:02:02PM -0500, Carl Karsten wrote:

 On Mon, Jul 23, 2018 at 4:16 PM, Geert Stappers 
 wrote:
>
>
> What do the other client fine that the netplan client doesn't do?
>

 resolve local names.

 xenial box:
 carl@twist:~$ host pc8
 pc8 has address 192.168.1.8

 carl@twist:~$ host trist
 trist has address 192.168.1.156

 bionic netplan:
 juser@dc10b:~$ host pc8
 Host pc8 not found: 2(SERVFAIL)
 juser@dc10b:~$ host trist
 Host trist not found: 2(SERVFAIL)

 juser@dc10b:~$ host pc8 192.168.1.8
 Using domain server:
 Name: 192.168.1.8
 Address: 192.168.1.8#53
 Aliases:
 pc8 has address 192.168.1.8

 juser@dc10b:~$ host trist 192.168.1.8
 Using domain server:
 Name: 192.168.1.8
 Address: 192.168.1.8#53
 Aliases:
 trist has address 192.168.1.156


 juser@dc10b:~$ cat /run/systemd/resolve/resolv.conf
 # [comments removed]
 nameserver 192.168.1.8

 juser@dc10b:~$ cat /etc/resolv.conf
 nameserver 127.0.0.53
>>>
>>>
>>>
>>> My guess is that a domain name is missing, dc10b correct and twist wrong.
>>
>>
>> ah right, I don't have
>> domain=something.com
>>
>> I'm not sure I have gotten a straight answer about if/what domain name
>> I should plug in.
>> I have no 

Re: [Dnsmasq-discuss] local dns broke

2018-07-24 Thread john doe

On 7/24/2018 7:47 AM, Carl Karsten wrote:

On Tue, Jul 24, 2018 at 12:32 AM, Geert Stappers  wrote:

On Mon, Jul 23, 2018 at 06:02:02PM -0500, Carl Karsten wrote:

On Mon, Jul 23, 2018 at 4:16 PM, Geert Stappers  wrote:


What do the other client fine that the netplan client doesn't do?



resolve local names.

xenial box:
carl@twist:~$ host pc8
pc8 has address 192.168.1.8

carl@twist:~$ host trist
trist has address 192.168.1.156

bionic netplan:
juser@dc10b:~$ host pc8
Host pc8 not found: 2(SERVFAIL)
juser@dc10b:~$ host trist
Host trist not found: 2(SERVFAIL)

juser@dc10b:~$ host pc8 192.168.1.8
Using domain server:
Name: 192.168.1.8
Address: 192.168.1.8#53
Aliases:
pc8 has address 192.168.1.8

juser@dc10b:~$ host trist 192.168.1.8
Using domain server:
Name: 192.168.1.8
Address: 192.168.1.8#53
Aliases:
trist has address 192.168.1.156


juser@dc10b:~$ cat /run/systemd/resolve/resolv.conf
# [comments removed]
nameserver 192.168.1.8

juser@dc10b:~$ cat /etc/resolv.conf
nameserver 127.0.0.53



My guess is that a domain name is missing, dc10b correct and twist wrong.


ah right, I don't have
domain=something.com

I'm not sure I have gotten a straight answer about if/what domain name
I should plug in.
I have no interest of these names resolving outside of my lan, so what
name should I use?



One of those TLDS (.home' seems reasonable)'
  home
  internal
  intranet
  lan
  local
  private
  test

Also have a look online for private TLDS, there is more to this.

--
John Doe

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] local dns broke

2018-07-24 Thread Carl Karsten
On Tue, Jul 24, 2018 at 12:32 AM, Geert Stappers  wrote:
> On Mon, Jul 23, 2018 at 06:02:02PM -0500, Carl Karsten wrote:
>> On Mon, Jul 23, 2018 at 4:16 PM, Geert Stappers  wrote:
>> >
>> > What do the other client fine that the netplan client doesn't do?
>> >
>>
>> resolve local names.
>>
>> xenial box:
>> carl@twist:~$ host pc8
>> pc8 has address 192.168.1.8
>>
>> carl@twist:~$ host trist
>> trist has address 192.168.1.156
>>
>> bionic netplan:
>> juser@dc10b:~$ host pc8
>> Host pc8 not found: 2(SERVFAIL)
>> juser@dc10b:~$ host trist
>> Host trist not found: 2(SERVFAIL)
>>
>> juser@dc10b:~$ host pc8 192.168.1.8
>> Using domain server:
>> Name: 192.168.1.8
>> Address: 192.168.1.8#53
>> Aliases:
>> pc8 has address 192.168.1.8
>>
>> juser@dc10b:~$ host trist 192.168.1.8
>> Using domain server:
>> Name: 192.168.1.8
>> Address: 192.168.1.8#53
>> Aliases:
>> trist has address 192.168.1.156
>>
>>
>> juser@dc10b:~$ cat /run/systemd/resolve/resolv.conf
>> # [comments removed]
>> nameserver 192.168.1.8
>>
>> juser@dc10b:~$ cat /etc/resolv.conf
>> nameserver 127.0.0.53
>
>
> My guess is that a domain name is missing, dc10b correct and twist wrong.

ah right, I don't have
domain=something.com

I'm not sure I have gotten a straight answer about if/what domain name
I should plug in.
I have no interest of these names resolving outside of my lan, so what
name should I use?


>
>
> Cheers
> Geert Stappers
> --
> Yes, discussion order is in chronological order
>
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss