Hei Neil,
The NTPServer is in the internet, standard gentoo ntp.conf file:
# Pools for Gentoo users
server 0.gentoo.pool.ntp.org
server 1.gentoo.pool.ntp.org
server 2.gentoo.pool.ntp.org
server 3.gentoo.pool.ntp.org
I am using systemd-networkd, regarding the gentoo systemd network guide:
https://wiki.gentoo.org/wiki/Systemd#systemd-networkd
/etc/systemd/network/50-dhcp.network looks like this:
[Match]
Name=en*
[Network]
DHCP=yes
IPv6PrivacyExtensions=true
[DHCP]
UseDNS=false
/etc/systemd/resolved.conf looks like this:
[Resolve]
DNS=1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001
ifconfig -a:
enp6s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:01:2e:80:8c:2d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp7s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.248 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::201:2eff:fe80:8c2e prefixlen 64 scopeid 0x20<link>
inet6 xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:fe80:8c2e prefixlen 64
scopeid 0x0<global>
ether 00:01:2e:80:8c:2e txqueuelen 1000 (Ethernet)
RX packets 123185 bytes 136156971 (129.8 MiB)
RX errors 0 dropped 2 overruns 0 frame 0
TX packets 46499 bytes 8831194 (8.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
(i replaced ipv6 address with xxx....)
On 11.03.19 09:23, Neil Bothwick wrote:
On Sun, 10 Mar 2019 18:55:29 -0400, Rich Freeman wrote:
Mar 11 00:33:37 localhost ntpdate[4553]: Exiting, name server cannot
be used: Temporary failure in name resolution (-3)11 Mar 00:33:37
ntpdate[4553]: name server cannot be used: Temporary failure in name
resolution (-3)
Ok, you didn't mention what you're using for a network manager. How
is the network interface being configured in the first place? There
are several ways that it is commonly done.
Also, what are you using for DNS? In particular, are you running a
local DNS server, or are you relying on a network-supplied DNS server?
How is /etc/resolv.conf being created (likely by the network manager,
but maybe it is being done in another way).
Also, where is the NTP server? On the local network or external?
ntpdate by default depends on network-online.target and not on
nss-lookup.target, which can sometimes lead to issues if you're
running a DNS server that isn't online when the network is online
(such as a local server).
The definitions of when a network is actually online are variable, see
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
You may need to add NetworkManager-wait-online.service or
systemd-networkd-wait-online.service to the dependencies for ntpdate,
which is possibly why Rich is asking how you manage your network.
I don't use ntpdate here but systemd-timesyncd.service instead, which
seems to handle this better.