Quantcast
Channel: Ubuntu Forums - Networking & Wireless
Viewing all articles
Browse latest Browse all 23300

Ubuntu not using local DNS server

$
0
0
I like to setup a local DNS Server and include DNS records for each of my local computers, printers, and servers. This saves me from remembering IP addresses.

Since I'm use a raspberry pi with pi.hole ad blocker I just use its Local DNS server. To make this all work I just have to change my AP/router's DHCP Server's DNS entries to have the first entry be my pi.hole device's IP. This all works as far as ad blocking is concerned, but all my Ubuntu based clients don't use the DNS server. However, my Debian 12 and Archlinux clients do use the DNS server and the hostnames are all recognized.

On a Kubuntu 24.04 client I'm testing, here is what it sees. My DNS server is at 192.168.68.30 and kubuntu is one of my media servers. As you can see the kubuntu name is not known.
Code:

resolvectl status
Global
        Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
  resolv.conf mode: stub

Link 2 (enp3s0)
    Current Scopes: DNS
        Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.68.30
      DNS Servers: 192.168.68.30 8.8.8.8

Link 3 (wlp1s0)
    Current Scopes: DNS
        Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.68.30
      DNS Servers: 192.168.68.30 8.8.8.8

jim@jim-nucboxg3:~$ nslookup kubuntu
Server:        127.0.0.53
Address:        127.0.0.53#53

** server can't find kubuntu: SERVFAIL

However if I'm on my iotstack client (Debian 12 Raspberry Pi OS) and use the host name of my media server, kubuntu, it finds it.
Code:

pi@iotstack:~ $ nslookup kubuntu
Server:        192.168.68.30
Address:        192.168.68.30#53

Name:  kubuntu
Address: 192.168.68.67

I have even tried adding the Local DNS servers IP to WiFi network settings for IPv4 but that doesn't work. I even did one test with adding it the netplan file for the wifi port.

Any ideas?

Viewing all articles
Browse latest Browse all 23300

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>