• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to set permanent DNS Nameserver on Linux Mint 20.2

  • 00:42 lsb_release -a
  • 01:05 apt install resolvconf
  • 01:18 systemctl start resolvconf.service
  • 01:56 systemctl enable resolvconf.service
  • 02:21 systemctl status resolvconf.service
  • 03:10 nano /etc/resolvconf/resolv.conf.d/head
  • 03:30 resolvconf -u
  • 04:03 nano /etc/resolv.conf
7482

To Set Permanent DNS On Linux Mint 20.2

Introduction:

The Domain Name System is the hierarchical and decentralized naming system used to identify computers, services, and other resources reachable through the internet or other internet protocol networks. The resource records contained in the DNS associate domain names with other forms of information.

Installation Procedure:

Step 1: Check the OS version by using the below command

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Linuxmint
Description:	Linux Mint 20.2
Release:	20.2
Codename:	uma

Step 2: Install the resolvconf package by using the below command

root@linuxhelp:~# apt install resolvconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  resolvconf
0 upgraded, 1 newly installed, 0 to remove and 56 not upgraded.
Need to get 54.7 kB of archives.
After this operation, 200 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 resolvconf all 1.82 [54.7 kB]
Fetched 54.7 kB in 1s (61.1 kB/s)     
Preconfiguring packages ...
Selecting previously unselected package resolvconf.
(Reading database ... 288936 files and directories currently installed.)
Preparing to unpack .../resolvconf_1.82_all.deb ...
Unpacking resolvconf (1.82) ...
Setting up resolvconf (1.82) ...
Created symlink /etc/systemd/system/sysinit.target.wants/resolvconf.service → /lib/systemd/system/resolvconf.service.


Created symlink /etc/systemd/system/systemd-resolved.service.wants/resolvconf-pull-resolved.path → /lib/systemd/system/resolvconf-pull-resolved.path.
resolvconf-pull-resolved.service is a disabled or a static unit, not starting it.
Processing triggers for systemd (245.4-4ubuntu3.13) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for resolvconf (1.82) ...

Step 3: Start the resolvconf.sevice by using the below command

root@linuxhelp:~# systemctl start resolvconf.service

Step 4: Enable the service by using the below command

root@linuxhelp:~# systemctl enable resolvconf.service
Synchronizing state of resolvconf.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable resolvconf

Step 5: Check the status of the service by using the below command

root@linuxhelp:~# systemctl status resolvconf.service
● resolvconf.service - Nameserver information manager
     Loaded: loaded (/lib/systemd/system/resolvconf.service; enabled; vendor preset: enabled)
     Active: active (exited) since Sat 2022-01-08 02:49:03 IST; 1min 21s ago
       Docs: man:resolvconf(8)
   Main PID: 76440 (code=exited, status=0/SUCCESS)
      Tasks: 0 (limit: 4579)
     Memory: 0B
     CGroup: /system.slice/resolvconf.service

Jan 08 02:49:03 linuxhelp systemd[1]: Started Nameserver information manager.
Jan 08 02:49:03 linuxhelp resolvconf[76445]: /etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/>

Step 6: Enter the permanent DNS nameserver configuration by using the below command

root@linuxhelp:~# nano /etc/resolvconf/resolv.conf.d/head
  GNU nano 4.8                                      /etc/resolvconf/resolv.conf.d/head                                                
Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)

DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

128.127.0.0.53 is the systemd-resolved stub resolver.

run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 8.8.8.8
nameserver 8.8.4.4

Step 7: Update the Configuration by using the below command

root@linuxhelp:~# resolvconf -u

Step 8: Check whether it is edited or not by using the below command

root@linuxhelp:~# nano /etc/resolv.conf 
  GNU nano 4.8                                               /etc/resolv.conf                                                         
Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)

O NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

127.0.0.53 is the systemd-resolved stub resolver.

run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 127.0.0.53
options edns0 trust-ad

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to Set Permanent DNS On Linux Mint 20.2. Your feedback is much welcome.

Tags:
sebastian
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

How can we install the DNS package?

A

By using the apt install resolvconf command we can install it.

Q

What is the command line to enable the resolvconf service?

A

By using the systemctl enable resolvconf.service we an enable the service.

Q

What is the directory path to add the name server?

A

By giving this path /etc/resolvconf/resolv.conf.d/head we can add the name server in that file.

Q

How will you update the reslovconf package?

A

By using the resolvconf -u command we can easily update

Q

How to Find My DNS Server IP Address?

A

We can find DNS Server IP Address by using the following command "cat /etc/resolv.conf"

Related Tutorials in How to set permanent DNS Nameserver on Linux Mint 20.2

Related Tutorials in How to set permanent DNS Nameserver on Linux Mint 20.2

How to install WinRAR 5.11 on Linuxmint 18.03
How to install WinRAR 5.11 on Linuxmint 18.03
May 22, 2018
How to Setup VNC Server on Linux Mint 20
How to Setup VNC Server on Linux Mint 20
Dec 22, 2020
How to install and configure samba setup in Linux mint - 18.3
How to install and configure samba setup in Linux mint - 18.3
Mar 26, 2018
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Sep 19, 2018
How to Install and Configure Samba on Linux Mint 20
How to Install and Configure Samba on Linux Mint 20
Nov 9, 2020
How to install and configure DNS server in CentOS 7
How to install and configure DNS server in CentOS 7
Sep 16, 2017
How to Install NextCloud on Linux Mint 18.3
How to Install NextCloud on Linux Mint 18.3
Feb 27, 2018
How To Install And Update OpenSSL On Linuxmint 18.3
How To Install And Update OpenSSL On Linuxmint 18.3
Jun 8, 2018

Related Forums in How to set permanent DNS Nameserver on Linux Mint 20.2

Related Forums in How to set permanent DNS Nameserver on Linux Mint 20.2

CentOS Web Panel
robert class=
DNS server is not working on Centos Web Panel
Dec 29, 2017
Bind
issacjoseph class=
How to check bind configuration
Feb 4, 2018
nslookup
karljustin class=
nslookup command not working
Feb 6, 2018
Linux
isaac class=
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-8.0/mysql-client-core-8.0_8.0.21-0ubuntu0.20.04.4_amd64.deb 404 Not Found
Dec 4, 2020
Linux Mint
AlxH class=
Complete beginner, install bluegriffon
Jul 1, 2020
Linux
AadrikaAnshu class=
How to add timestamps to history On Any Linux Machine
Jun 18, 2019
Linux Mint
bz0 class=
How to change a function of a key
Jun 7, 2019
DNS
david class=
Apt-get update Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/cosmic/InRelease Temporary failure resolving 'us.archive.ubuntu.com'
Apr 6, 2019

Related News in How to set permanent DNS Nameserver on Linux Mint 20.2

Related News in How to set permanent DNS Nameserver on Linux Mint 20.2

A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
Apr 9, 2019
Linux Mint 18.2 Ubuntu based Operating System is named Sonya
Linux Mint 18.2 Ubuntu based Operating System is named Sonya
May 2, 2017
Refreshed Linux Mint Debian Edition (LMDE) 2 'Betsy' ISO images now available
Refreshed Linux Mint Debian Edition (LMDE) 2 'Betsy' ISO images now available
Mar 14, 2017
The Best Linux Operating System is in the house: Mint 18.2
The Best Linux Operating System is in the house: Mint 18.2
Aug 12, 2017
Linux Mint 18.1 released with smooth features and offers long-term support
Linux Mint 18.1 released with smooth features and offers long-term support
Apr 11, 2017
Linux Mint 18.2 Sonya Beta version now available for download
Linux Mint 18.2 Sonya Beta version now available for download
Jun 7, 2017
Attackers Target Home Routers with DNS Hijacking
Attackers Target Home Routers with DNS Hijacking
Apr 9, 2019
Despite ISP Opposition, All Major Browsers will Eventually Roll Out DNS-over-HTTPS
Despite ISP Opposition, All Major Browsers will Eventually Roll Out DNS-over-HTTPS
Nov 12, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Isaiah ?
What is the use of SUID & SGID commands

How to set the special permissions to the files and folders using SUID and SGID commands...

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.