No name resolution within ntpd

I added
Code:
local_unbound_enable="YES"
in /etc/rc.conf. I started the service:
Code:
# service local_unbound start
There is now a DNS service running on the loopback interface:

Code:
# nmap -p 53 127.0.0.1
Starting Nmap 7.94 ( https://nmap.org ) at 2024-09-23 15:51 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000034s latency).

PORT   STATE SERVICE
53/tcp open  domain

Nmap done: 1 IP address (1 host up) scanned in 0.02 seconds

ntpd() works as expected:

Code:
# ntpq -p
you have mail
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 pool.ntp.org    .POOL.          16 p    -   64    0    0.000   +0.000   0.000
 0.de.pool.ntp.o .POOL.          16 p    -   64    0    0.000   +0.000   0.000
 1.de.pool.ntp.o .POOL.          16 p    -   64    0    0.000   +0.000   0.000
 0.freebsd.pool. .POOL.          16 p    -   64    0    0.000   +0.000   0.000
 2.freebsd.pool. .POOL.          16 p    -   64    0    0.000   +0.000   0.000
+0.freebsd.pool. 10.129.9.96      2 u    9  128  377   18.580   -3.606   1.443
+185.252.140.126 218.73.139.35    2 u   43  128   17   17.998   -3.035   0.851
+ntp1.wtnet.de   10.129.9.96      2 u   47  128   17   18.836   -2.829   1.572
+static.252.218. 129.69.253.1     2 u   45  128   17   15.999   -3.251   0.718
+158.101.188.125 129.69.253.1     2 u   42  128   17   12.190   -3.888   1.142
+srv016-de.arcan 130.149.17.21    2 u   37  128   17   13.590   -3.727   1.172
*node-1.infogral 17.253.14.253    2 u   39  128   17   16.215   -2.952   0.721
#kronos.mailus.d 131.188.3.220    2 u   38  128   17   16.011   -2.635   0.901

Why does ntpd() not check the DNS servers configured in resolv.conf?
 
Don't enable both. Especially if they're on different networks.

Also verify what wireguard is doing.

Indeed, wired and wireless network are on different networks. But there is only one default route through the wired network. Why should this cause problems?

When I disable wirguard, the behavior of ntpd() does not change.
 
Why should this cause problems?
Because they both do DHCP and your gateway and/or DNS settings can constantly change around (depending on the last interface that received a DHCP offer/renew). You also should not have more than one interface on the same subnet, that'll make routing ambiguous.
 
Back
Top