My Wiki!
**You've loaded an old revision of the document!** If you save it, you will create a new version with this data.
Media Files
====== Using systemd-resolved ====== ===== Configure NetworkManager ===== Edit the /etc/NetworkManager/NetworkManager.conf file, and set the following entry in the [main] section: dns=systemd-resolved Reload the NetworkManager service: # systemctl reload NetworkManager Force adjusting of /etc/resolv.conf netconfig update -f Verification steps Verify that the nameserver entry in the /etc/resolv.conf file refers to 127.0.0.53: # cat /etc/resolv.conf nameserver 127.0.0.53 Verify that the systemd-resolved service listens on port 53 on the local IP address 127.0.0.53: # netstat -tulpn | grep "127.0.0.53:53" tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 1050/systemd-resolv udp 0 0 127.0.0.53:53 0.0.0.0:* 1050/systemd-resolv ===== - Add DNS Entries ===== ===== - Troubleshooting ===== Some domain cannot be resolved (e.g., google.com but bing.com works). After updating system, may be relink the resolve file: sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf Check which route the DNS query goes: ip route get 1.1.1.1 dig google.com @1.1.1.1 * https://unix.stackexchange.com/questions/328131/how-to-troubleshoot-dns-with-systemd-resolved ====== Resources ====== * https://geekflare.com/linux-server-local-dns-caching/
Save
Preview
Cancel
Edit summary
Note: By editing this page you agree to license your content under the following license:
Trace:
•
dl
Article
Discussion
Edit this page
Old revisions
Log In
Navigation
ai_eng
cloudsa
devices
devops
documents
linux
misc
old_wiki
playground
programming
projects
resources
todo
ui-ux
virtualization
wiki
windows
work_dai_labor
yacoub
00_watch_list
01_publication_watchlist
02_pjs_task_overview
apache_wiki
damcuoi
heuristics
learning_resources
navigation
sidebar
td_wiki
v_openinfra_watch
Search
Toolbox
What links here
Recent Changes
Media Manager
Site index
Printable version
Permanent link
Cite this article