I tried to find a reasonable solution and looks that there are different
approaches.

I wanted to stay at most within the distribution layout while keeping
all business requirements fulfilled. This is what I tested:

```code


# Install required package and reconfigure service plans (i.e. disable 
systemd-resolved, enable dnsmasq
sudo apt-get install dnsmasq
sudo systemctl disable systemd-resolved
sudo systemctl stop systemd-resolved
sudo systemctl enable dnsmasq

# These two lines should work on most environments, but .. :-)
# Just add or change 'dns=dnsmasq' to your NetworkManager.conf to the section 
[main]
#sudo cp /etc/NetworkManager/NetworkManager.conf 
/etc/NetworkManager/NetworkManager.conf.backup
#sudo bash -c 'cat /etc/NetworkManager/NetworkManager.conf.backup |sed -e 
"s/^dns=.*//"| sed -e "s/\[main\]/\[main\]\ndns=dnsmasq/" 
>/etc/NetworkManager/NetworkManager.conf'

# Restart NetworkManager to make the change above applied
sudo systemctl restart NetworkManager

# This removes the systemd resolv.conf link only if it has NetworkManager 
replacement :-)
ls /var/run/NetworkManager/resolv.conf && sudo rm /etc/resolv.conf 

# And add NetworkManager's resolv.conf available for the system resolver
sudo ln -s /var/run/NetworkManager/resolv.conf /etc/resolv.conf


```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1800329

Title:
  Ubnutu 18.04 LTS KDE Neon does not resolve local (or single name)
  queries through DHCP assigned DNS (cached) server on local network

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1800329/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to