CentOS 8.x DNS resolution issues when there is proper working DNS in /etc/resolv.conf
From Notes_Wiki
<yambe:breadcrumb self="DNS resolution issues when there is proper working DNS in /etc/resolv.conf">CentOS 8.x systemd or systemctl|systemd or systemctl</yambe:breadcrumb>
CentOS 8.x DNS resolution issues when there is proper working DNS in /etc/resolv.conf
While using CentOS 8.x Stream it is possible to get DNS resolution errors via applications such as postfix, even when there is properly working DNS in /etc/resolv.conf and ping / nslookup / dig etc. are working properly. In this case try:
systemd-resolve --status
If it shows error such as:
Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found
then use following steps to resolve the issue:
- Create file named "/etc/NetworkManager/conf.d/no-systemd-resolved.conf" with
- [main]
- systemd-resolved=false
- Also use:
- systemctl enable systemd-resolved.service
- systemctl start systemd-resolved.service
- systemctl status systemd-resolved.service
- After this again test
- systemd-resolve --status
- and validate that systemd-resolve is working properly.
Refer:
- https://www.howtoforge.com/community/threads/mail-server-temporary-lookup-failure.85283/
- https://superuser.com/questions/1427311/activation-via-systemd-failed-for-unit-dbus-org-freedesktop-resolve1-service
<yambe:breadcrumb self="DNS resolution issues when there is proper working DNS in /etc/resolv.conf">CentOS 8.x systemd or systemctl|systemd or systemctl</yambe:breadcrumb>