Difference between revisions of "CentOS 8.x DNS resolution issues when there is proper working DNS in /etc/resolv.conf"

From Notes_Wiki
(Created page with "<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> =Ce...")
 
m
 
Line 1: Line 1:
<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>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x System Administration|System Administration]] > [[CentOS 8.x systemd or systemctl|systemd or systemctl]] > [[CentOS 8.x DNS resolution issues when there is proper working DNS in /etc/resolv.conf|DNS resolution issues when there is proper working DNS in /etc/resolv.conf]]
=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:
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:
Line 37: Line 36:




<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>
 
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x System Administration|System Administration]] > [[CentOS 8.x systemd or systemctl|systemd or systemctl]] > [[CentOS 8.x DNS resolution issues when there is proper working DNS in /etc/resolv.conf|DNS resolution issues when there is proper working DNS in /etc/resolv.conf]]

Latest revision as of 03:41, 19 April 2022

Home > CentOS > CentOS 8.x > System Administration > systemd or systemctl > 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:

  1. Create file named "/etc/NetworkManager/conf.d/no-systemd-resolved.conf" with
    [main]
    systemd-resolved=false
  2. Also use:
    systemctl enable systemd-resolved.service
    systemctl start systemd-resolved.service
    systemctl status systemd-resolved.service
  3. After this again test
    systemd-resolve --status
    and validate that systemd-resolve is working properly.


Refer:



Home > CentOS > CentOS 8.x > System Administration > systemd or systemctl > DNS resolution issues when there is proper working DNS in /etc/resolv.conf