DNS resolve not working can you please advice.

f33dm3bits

Gold Member
Gold Supporter
Credits
7,310
You said it was working with systemd-resolved, I don't quite get why it's not working with systemd-resolved disabled. Can you try installing and enabling dnsmasq
Code:
sudo apt-get install dnsmasq
sudo systemctl enable dnsmasq
sudo systemctl start dnsmasq
Does it work then?
 


f33dm3bits

Gold Member
Gold Supporter
Credits
7,310
I missed that you were using networkd in your earlier post and not NetworkManager so this should get you back to your original state.
1. systemctl enable systemd-resolved.service
2. rm /etc/resolv.conf
3. systemctl start systemd-resolved.service
If that still doesn't work you can also remove the file you create: /etc/systemd/network/20-lan.network.
Then restart systemd-networkd.service.
 

au190

New Member
Credits
113
Thank you very much for your help f33dm3bits !

It was a very good help from you, and was grat work.
The isssue is resolved, all your steps was good.

It was my mistake why was not working the domain name, the domain name dns ip was not refreshed, and had a wrong ip address.


Code:
1.
[email protected]:~# cat /etc/resolv.conf
# Use Google's public DNS servers.
nameserver 8.8.4.4
nameserver 8.8.8.8

2.
sudo systemctl stop systemd-resolved.service
sudo systemctl disable systemd-resolved.service

3.
nano /etc/systemd/network/20-lan.network

[Match]
Name=eno1

[Network]
DHCP=yes

4.
sudo mv /etc/resolv.conf /etc/resolv.conf.bak

5.
Then create a file with the name of the one you just removed: /etc/resolv.conf with the following content
nano /etc/resolv.conf

nameserver 8.8.4.4
nameserver 8.8.8.8

6.
reboot
 

f33dm3bits

Gold Member
Gold Supporter
Credits
7,310
@au190 Glad to have helped out and that you got it to work. :)
Just a question, if you are using pi-hole(used to blocked trackers and such), why are you using google public dns servers?
 

au190

New Member
Credits
113
That was just in the test, I updated to the pihole container address (local linux server address)
That was the point of all this work to have all my containers in one server. And my probelm was with PiHole and DNS.

Thx again.
 


Members online


Top