So love Elementary OS but confused by DNS. Read another answer to a similar question but didn't understand it. Hoping someone can explain a little more clearly. My issue is resolving local hostnames. This is the testing I have done.
I have a little Raspberry Pi set up on the same network. The hostname is "raspberrypi". It is registered in DNS and I have confirmed that its hostname can be resolved using local DNS from other machines.
If I open a terminal window in Elementary and ping www.bbc.co.uk, www.amazon.co.uk or other external sites DNS resolves correctly. However if I ping the Pi - eg "raspberrypi" I simply get "Name or Service not known". Same if I try to SSH to raspberrypi - I get the same message with the added note - name cannot be resolved.
When i run "nslookup raspberrypi" it fails and returns 127.0.0.53 as the name server its using?
If I run "nslookup raspberrypi 192.168.1.1" - specifying my default internal DNS server it works fine and can resolve it.
If I run "systemd-resolve --status" I can see that 192.168.1.1 is set as the DNS server for my wireless interface.
So why isn't Elementary using the DNS server set to resolve localhost names?
Can anyone explain? Thanks
Thanks