Linux Ubuntu Mint how to check nameservers when /etc/resolv.conf disabled solution

You'll notice that /etc/resolv.conf contains dire warners on most Linux Desktops. 

# This file is managed by man:systemd-resolved(8). Do not edit.
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.



This is because of systemd-resolved, which is a local, internal DNS resolver service that handles all of the DNS requests.  It warns you not to make changes since they will just be overwritten and defaulted back to the local resolver running on as we can see with the line for "nameserver"

We can see that indeed systemd-resolved is running on

Output of netstat

tcp        0      0 *               LISTEN      1773/systemd-resolv
udp        0      0 *                           1773/systemd-resolv


You can check the current nameservers with this command:

systemd-resolve --status

       LLMNR setting: no                  
MulticastDNS setting: no                  
  DNSOverTLS setting: no                  
      DNSSEC setting: no                  
    DNSSEC supported: no                  
  Current DNS Server:     
         DNS Servers:
          DNSSEC NTA:     

Link 13 (veth8325f72)
      Current Scopes: none
DefaultRoute setting: no  
       LLMNR setting: yes
MulticastDNS setting: no  
  DNSOverTLS setting: no  
      DNSSEC setting: no  
    DNSSEC supported: no  

Link 11 (veth9a73ce5)
      Current Scopes: none
DefaultRoute setting: no  
       LLMNR setting: yes
MulticastDNS setting: no  
  DNSOverTLS setting: no  
      DNSSEC setting: no  
    DNSSEC supported: no  

How can we get rid of systemd-resolved?

In fact this is required if want to run our own bind or DNSMasq server for various reasons including running your own local routing/DNS:


systemctl disable systemd-resolved

#remember to stop it too!

systemctl stop systemd-resolved

Remember to actually add a "nameserver" entry in /etc/resolv.conf or your DNS won't work.


linux, ubuntu, mint, nameservers, etc, resolv, conf, disabled, solutionyou, ll, contains, dire, warners, desktops, systemd, resolved, edit, dynamic, connecting, dns, stub, resolver, lists, configured, domains, quot, resolvectl, uplink, servers, currently, programs, symlink, static, supported, modes, nameserver, handles, requests, warns, overwritten, defaulted, output, netstat, tcp, udp, resolve, global, llmnr, multicastdns, dnsovertls, dnssec, server, nta, addr, arpa, corp, ip, intranet, lan, veth, scopes, defaultroute, ce, bind, dnsmasq, various, routing, https, realtechtalk, virtualbox_best_networking_mode_in_labwork_environment_without_using_nat_network_or_bridged, articles, systemctl, disable,

Latest Articles

  • How To Stop DNSMasq from listening on all IPs/Interfaces and allow only localhost
  • du - VAS Billing Subscriptions Hack/Scam MLPremiumSub Invascom Astromart Issues Complaint
  • Docker Swarm vs Kubernetes Comparison Guide
  • When is it time to leave your VPS/VDS Cloud Hosting Provider?
  • 2024 Buyer's Guide: How to Choose and Buy the Best VPS/VDS for Your Needs - Tips and Strategies
  • Postfix / sendmail config for DKIM, SPF and DMARC Tutorial Guide E-mail Delivery for and More HowTo
  • Install Grafana on Linux Debian Ubuntu Tutorial Guide
  • How To Completely Disable ufw in Linux Ubuntu Mint Debian
  • System has not been booted with systemd as init system (PID 1). Can't operate. Failed to talk to init daemon. Ubuntu Debian Linux Solution Cannot reboot
  • Mint Ubuntu Linux Gnome Showing Home Directory on Desktop instead of Desktop Directory
  • vi vim not doing code highlighting E319: Sorry, the command is not available in this version solution
  • Proxmox How To Rename Node Hostname Fix Solution
  • Linux how to get list of all timezones on system Ubuntu
  • Proxmox install issue cannot see the buttons or install wrong / bad resolution cannot see the entire screen problem solution
  • error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. solution
  • Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/ line 326. autoreconf: failed to run aclocal: No such file or directory solution
  • /bin/sh: autoreconf: command not found solution
  • glib-2.0 required to compile QEMU solution
  • How To Upgrade Debian 8,9,10 to Debian 12 Bookworm
  • Linux dhcp dhclient Mint Redhat Ubuntu Debian How To Use Local Domain DNS Server Instead of ISPs