Linux Mint - Use Local DNS Server
Linux Mint is a community-driven Linux distribution based on Ubuntu, bundled with a variety of free and open-source applications. It can provide full out-of-the-box multimedia support for those who choose to include proprietary software such as multimedia codecs.
If you are using your own DNS server (I use Pihole), and you can’t get your local dns lookups to work, this may solve your problem.
Edit NetworkManager
1
sudo nano /etc/NetworkManager/NetworkManager.conf
Add under [main]
dns=none
File should now look something like this:
1
2
3
4
5
6
7
8
9
[main]
plugins=ifupdown,keyfile
dns=none
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no
Reload Network Manager
1
sudo systemctl reload NetworkManager
Unlink resolv.conf
1
sudo unlink /etc/resolv.conf
Stop and Disable systemd-resolved
1
2
sudo systemctl stop systemd-resolved.service
sudo systemctl disable sytemd-resolved.service
Create new resolv.conf file:
1
sudo nano /etc/resolv.conf
Add:
1
2
3
nameserver 192.168.x.x # IP for your DNS server
options edns0 trust-ad
search example.com # Your domain
Restart the computer.
This post is licensed under
CC BY 4.0
by the author.