add dns in ubuntu permanently

sudo apt update
sudo apt install resolvconf

sudo systemctl start resolvconf.service
sudo systemctl enable resolvconf.service
sudo systemctl status resolvconf.service

sudo vim /etc/resolvconf/resolv.conf.d/head
and add the following lines in it:
nameserver 8.8.8.8 
nameserver 8.8.4.4

sudo systemctl start resolvconf.service

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
permanently add dns on resolver ubuntu add dns in ubuntu how to add dns to ubuntu how to add custom dns on ubuntu how set DNS on ubuntu how to add DNS server to ubuntu how to add dns server in ubuntu how set dns in ubuntu change dns on ubuntu change dns ubuntu permanently ubuntu add dns server change dns ubuntu 20.04 change default dns ubuntu why auto dns ubuntu ubuntu server create DNS set up permanent dns ubuntu how to add DNS ubuntu add dns server ubuntu setting up dns linux ubuntu 20.04 set dns ubuntu add dns server resolvconf ubuntu nameserver ubuntu cli resolvconf tutorial set ubuntu change default resolver change dns on ubuntu 18.04 change name server ubuntu terminal ubuntu force dns server update resolvconf nameservers ubuntu nameserver 8.8.8.8 change dns forever linux how to set dns on linux how to setup global dns on ubuntu how to setup globale dns on ubuntu ubuntu add dns server manually ubuntu config dns how to change dns in ubuntu dns-nameservers 8.8.8.8 ubuntu dns server ubuntu configure dns ubuntu ubuntu set dns setting up ubuntu nameserver ubuntu change nameserver command line modify resolv conf ubuntu and resolv.conf restart restart resolv.conf ubuntu 18 restart resolv.conf in ubuntu updating resolv.conf in ubuntu how to change dns ubunru ubuntu 18.04 set dns server ubuntu dns config modify dns ubuntu permanently ubuntu modify dns ubuntu permanently ubuntu server change dns server ubuntu 16.04 change dns ubuntu set dns server add dns server in ubuntu set dns ubuntu terminal set dns ubuntu set dns on ubuntu server ubuntu nameserrver change name server unutu ubuntu set DNS servers command line how to install resolvconf package change dns server ubuntu set dns sever ubuntu install resolvconf change name server ubuntu ubuntu 18.04 /etc/resolv.conf overwritten resolv conf always change ubuntu 18.04 change dns ubuntu how to change ubuntu 18.04 dns server ubuntu change dns server command line ubuntu setup dns ubuntu setup nameserver how to configure rdns ubuntu ubuntu update nameserver ubuntu ubdate nameserver add nameserver in resolv.conf ubuntu how to permanently change dns server ubuntu 18.04 change dns in ubuntu configure dns in ubuntu how to change dns servers on ubuntu ubuntu dns server settings how to change dns server in ubuntu 18.04 ubuntu set dns server resolv.conf configure dns ubuntu 18.04 setup dns record ubuntu 18.04 set system dns server ubuntu set dns ubuntu 18 apt install reolveconf ubuntu set default dns how change the nameserver in ubuntu change dns server command line ubuntu set google dns ubuntu 18 how to change dns server on ubuntu 18 change dns ubuntu server change dns in ubuntu\ ubuntu change dns server Ubuntu set DNS by CLI dns on ubuntu set permanent dns ubuntu add dns in ubuntu permanently
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source