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


Re: [Dnsmasq-discuss] local dns broke

2018-07-23 Thread Geert Stappers
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.


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


Re: [Dnsmasq-discuss] local dns broke

2018-07-23 Thread Carl Karsten
On Mon, Jul 23, 2018 at 4:16 PM, Geert Stappers  wrote:
> On Mon, Jul 23, 2018 at 03:14:48PM -0500, Carl Karsten wrote:
>> the server is fine.  I think.  I'm fuzzy on why I need pc8 in that
>> line, but whatever:  it seems to be sending 192.168.1.8 to the client.
>> other clients work just fine.
>>
>> I just learned that ubuntu bionic uses a new networking management
>> thing called "netplan"
>> I suspect this is relevant.
>>
>>
>> juser@dc10b:~$ cat /etc/netplan/01-netcfg.yaml
>> # This file describes the network interfaces available on your system
>> # For more information, see netplan(5).
>> network:
>>   version: 2
>>   renderer: networkd
>>   ethernets:
>> enp0s25:
>>   dhcp4: yes
>>
>
> 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


>
> 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


Re: [Dnsmasq-discuss] local dns broke

2018-07-23 Thread Carl Karsten
the server is fine.  I think.  I'm fuzzy on why I need pc8 in that
line, but whatever:  it seems to be sending 192.168.1.8 to the client.
other clients work just fine.

I just learned that ubuntu bionic uses a new networking management
thing called "netplan"
I suspect this is relevant.


juser@dc10b:~$ cat /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
enp0s25:
  dhcp4: yes




On Mon, Jul 23, 2018 at 2:22 PM, john doe  wrote:
> On 7/23/2018 1:23 AM, Carl Karsten wrote:
>>
>> I am not sure if this is a dnsmasq problem, but hopefully someone can
>> help me track down who's problem it is.
>>
>> My dhcp server has:
>> host-record=pc8,192.168.1.8
>>
>
> From the man page:
>
> http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
>
> host-record:
> ...
> "in hosts-file also. Unlike hosts-files, names are not expanded, even when
> expand-hosts is in effect. Short and long names may appear in the same
> host-record, eg.
> --host-record=laptop,laptop.thekelleys.org,192.168.0.1,1234::100
> If the time-to-live is given, it overrides the default, which is zero or the
> value of --local-ttl."
>
> HTH
>
> --
> John Doe
>
> ___
> 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


Re: [Dnsmasq-discuss] local dns broke

2018-07-23 Thread john doe

On 7/23/2018 1:23 AM, Carl Karsten wrote:

I am not sure if this is a dnsmasq problem, but hopefully someone can
help me track down who's problem it is.

My dhcp server has:
host-record=pc8,192.168.1.8



From the man page:

http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

host-record:
...
"in hosts-file also. Unlike hosts-files, names are not expanded, even 
when expand-hosts is in effect. Short and long names may appear in the 
same host-record, eg. 
--host-record=laptop,laptop.thekelleys.org,192.168.0.1,1234::100
If the time-to-live is given, it overrides the default, which is zero or 
the value of --local-ttl."


HTH

--
John Doe

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