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 resize a pdf without losing much quality in Linux Mint Ubuntu Debian Redhat Solution
  • qemu: could not load PC BIOS 'bios-256k.bin' solution
  • Proxmox How To Custom Partition During Install
  • Hyper-V Linux VM Boots to Black Screen, Storage, NIC Not Found Issues
  • Ubuntu Mint How to Fix Missing/Broken /dev and /dev/pts which causes terminal to immediately close exit and not work
  • How high can a Xeon CPU get?
  • bash fix PATH environment variable "command not found" solution
  • Ubuntu Linux Mint Debian Redhat Youtube Cannot Play HD or 4K videos, dropped frames or high CPU usage with Nvidia or AMD Driver
  • hostapd example configuration for high speed AC on 5GHz using WPA2
  • hostapd how to enable and use WPS to connect wireless devices like printers
  • Dell Server Workstation iDRAC Dead after Firmware Update Solution R720, R320, R730
  • Cloned VM/Server/Computer in Linux won't boot and goes to initramfs busybox Solution
  • How To Add Windows 7 8 10 11 to GRUB Boot List Dual Booting
  • How to configure OpenDKIM on Linux with Postfix and setup bind zonefile
  • Debian Ubuntu 10/11/12 Linux how to get tftpd-hpa server setup tutorial
  • efibootmgr: option requires an argument -- 'd' efibootmgr version 15 grub-install.real: error: efibootmgr failed to register the boot entry: Operation not permitted.
  • Apache Error Won't start SSL Cert Issue Solution Unable to configure verify locations for client authentication SSL Library Error: 151441510 error:0906D066:PEM routines:PEM_read_bio:bad end line SSL Library Error: 185090057 error:0B084009:x509 certif
  • Linux Debian Mint Ubuntu Bridge br0 gets random IP
  • redis requirements
  • How to kill a docker swarm