To remove the local DNS resolver on port 53 in Ubuntu, follow these steps:
1- Open the terminal and run the following command to edit the resolved.conf file:
sudo nano /etc/systemd/resolved.conf
2- Modify the DNSStubListener Setting
Find the line that says #DNSStubListener=yes and change it to:
DNSStubListener=no
3- Restart the systemd-resolved Service
After saving the changes, restart the service to apply them:
sudo systemctl restart systemd-resolved
All done.
0 comments:
Post a Comment