On Thursday, 31 March 2022 15:36:44 BST Terry Coles wrote:
> I've just remembered that I have the ability to connect with another Kubuntu
> machine (this desktop) by plugging in a USB WiFi Adaptor, that I'd
> forgotten that I have. I did. It worked. So the problem seems to be in my
> laptop.   :oops

Hi, I've found out a couple of things since yesterday. First; ip a doesn't 
identify the DNS 
Server in use and nor does ip route, which only provides the default route. 
However, nmcli 
does. On my desktop which is connected to the Internet via Ethernet to my home 
router 
and to the test network via WiFi, I get:

nmcli dev show | grep DNS
IP4.DNS[1]:                             192.168.1.1
IP4.DNS[1]:                             192.168.0.1

Which shows that the machine has knowledge of a DNS Server via my home router 
and 
the DNS Server on the test network (the Webserver). I would expect therefore 
that 
nslookup should work from my desktop to identify items on the test network. The 
trouble 
is that this only half works. From my desktop:

terry@OptiPlex:~$ nslookup wmt-guest.com
Server:         127.0.0.53
Address:        127.0.0.53#53

Non-authoritative answer:
Name:   wmt-guest.com
Address: 192.168.0.1
Name:   wmt-guest.com
Address: 127.0.0.1

Good. But if I try to resolve the identity of one of the other devices on the 
real network 
(held in a separate file and identified in dnsmasq.conf by the line 
'addn-hosts=/etc/
hosts.dnsmasq'), it doesn't work:

terry@OptiPlex:~$ nslookup sumppi
Server:         127.0.0.53
Address:        127.0.0.53#53

** server can't find sumppi: SERVFAIL

Unless I include the identity of the server.

terry@OptiPlex:~$ nslookup sumppi 192.168.0.1
Server:         192.168.0.1
Address:        192.168.0.1#53

Name:   sumppi
Address: 192.168.0.2

I can resolve sumppi when logged into the Webserver via ssh. So why does 
nslookup fail 
when I try to use it from a device logged into the test network unless I 
include the identity 
of the DNS Server?

-- 



                Terry Coles
-- 
  Next meeting: Online, Jitsi, Tuesday, 2022-05-04 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to