systemd-resolved falls back to Google public DNS servers

Solution Unverified - Updated -

Issue

  • DNS requests are directed to Google public DNS servers .

  • The following entry is logged in messages log:

    Jun 18 08:01:56 rhel7 systemd-resolved: Switching to system DNS server 8.8.8.8.
    

Environment

  • Red Hat Enterprise Linux 7 (RHEL 7)
  • systemd-219.X
  • systemd-resolved-219.X
  • systemd-resolved is installed and enabled in /etc/nsswitch.conf :

    hosts:      files dns resolve
    
  • nameserver setting is missing in /etc/resolv.conf
  • DNS setting is missing in /etc/sysconfig/network-scripts/ifcfg-*

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content