Okay, but isn’t that what NM is supposed to be doing - writing /etc/resolv.conf?
$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 127.0.0.1
options edns0 trust-ad
‘# Generated by NetworkManager’ - and, there is no search domain in there…?
And, if written by NM, anything I put in there is going to get overwritten, isn’t it?
Is that the dnsmasq config in /etc/NetworkManager/dnsmasq.d (cf. /etc/NetworkManager/system-connections) or dnsmasq config in /etc/dnsmasq.d (cf. /etc/NetworkManager/system-connections)?
Surely NM should be picking up what’s in its config of dnsmasq - that is, what’s in /etc/NetworkManager/dnsmasq.d ? And, NM should have the smarts that if it is running dnsmasq from its config, then it shouldn’t be shoving separate confgs of its own (from /etc/NetworkManager/system-connections) at dnsmasq via DBus - if I understand that correct (I may very well not…) then surely that’s a bug in NM?
Shouldn’t NM be picking up
$ cat /etc/NetworkManager/dnsmasq.d/01*|grep local=
local=/office.lan/
And, populating /etc/resolv.conf with
# Generated by NetworkManager
search office.lan
?
Re the ping problem, this is what I get on my other network:
me@myoldmachine:~$ ping -4 myoldmachine
PING (192.168.0.141) 56(84) bytes of data.
64 bytes from myoldmachine.home.lan (192.168.0.141): icmp_seq=1 ttl=64 time=0.044 ms
64 bytes from myoldmachine.home.lan (192.168.0.141): icmp_seq=2 ttl=64 time=0.056 ms
64 bytes from myoldmachine.home.lan (192.168.0.141): icmp_seq=3 ttl=64 time=0.043 ms
^C
--- ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.043/0.047/0.056/0.005 ms
me@myoldmachine:~$ cat /etc/resolv.conf
# Generated by NetworkManager
search home.lan
nameserver 192.168.0.10
nameserver fd00:0:0:5::10
me@myoldmachine:~$
So, pinging the machine internally, the machine name gets expanded - and /etc/resolv.conf is populated with the search domain, but not so the server:
[admin@server ~]$ ping -4 server
PING server (192.168.1.40) 56(84) bytes of data.
64 bytes from server (192.168.1.40): icmp_seq=1 ttl=64 time=0.085 ms
64 bytes from server (192.168.1.40): icmp_seq=2 ttl=64 time=0.096 ms
64 bytes from server (192.168.1.40): icmp_seq=3 ttl=64 time=0.119 ms
^C
--- server ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2068ms
rtt min/avg/max/mdev = 0.085/0.100/0.119/0.014 ms
[admin@server ~]$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 127.0.0.1
options edns0 trust-ad
[admin@server ~]$
…?