Cannot make DNS work

Hello everyone! I have successfully setup my own network controller in Ubuntu desktop VM and also managed to route all traffic through it to make LAN accessible.

The next step was to implement the ZeroNSD as per the documentation but everytime i try to ping it fails to resolve in every single device in my private network.

General info:

-allowDNS is set to 1 in guestVM (controller).
-all clients (android and windows) have dns configuration enabled and receive the DNS settings normally once connected to the controller.
-my controller has ZT IP 10.254.254.219 and also the DNS ZT IP is set to domain name: private.zt1network and domain server ZT IP10.254.254.219 in (ZTNCUI)
-i tried adding the 10.254.254.219 private.zt1network in etc/hosts but to no avail.

Some more insight:

dig @10.254.254.219 controller.private.zt1network shows this:

> ;; communications error to 10.254.254.219#53: connection refused
> ;; communications error to 10.254.254.219#53: connection refused
> ;; communications error to 10.254.254.219#53: connection refused
> 
> ; <<>> DiG 9.18.18-0ubuntu0.22.04.2-Ubuntu <<>> @10.254.254.219 controller.private.zt1network
> ; (1 server found)
> ;; global options: +cmd
> ;; no servers could be reached
resolvectl status shows this:

> Global
>        Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
> resolv.conf mode: stub
> 
> Link 2 (ens33)
>     Current Scopes: DNS
>          Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
> Current DNS Server: 10.0.0.1
>        DNS Servers: 10.0.0.1
>         DNS Domain: FWA-5G
> 
> Link 3 (zt4i3v34cw)
>     Current Scopes: DNS
>          Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
> Current DNS Server: 10.254.254.219
>        DNS Servers: 10.254.254.219
>         DNS Domain: ~254.254.10.in-addr.arpa ~private.zt1network

ping controller.private.zt1network shows this:

> ping: controller.private.zt1network: Temporary failure in name resolution

Also tried lsof…

> sudo lsof -i -n | grep ^zeronsd | grep UDP | awk '{ print $9 }' | cut -f1 -d:

shows empty (no dns server ZT IP)

Windows client cmd:

> ping myDeviceName.private.zt1network
> Ping request could not find host myDeviceName.private.zt1network. Please check the name and try again.

Everything seems to have been setup correctly and everything is running. I downloaded latest deb packages for ub22 and amd64. Can someone tell me what am i missing? I can send any further log needed to troubleshoot and maybe also help others who have a similar problem.

Nevermind guys, apparently this is not meant to work with self hosted controllers (e.g. ztncui) but only with ZT Central.

1 Like