Skip to content

Instantly share code, notes, and snippets.

@jamesridgway
Created May 29, 2021 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesridgway/3a2c8bc8e535e4f08ab5b9f64861445f to your computer and use it in GitHub Desktop.
Save jamesridgway/3a2c8bc8e535e4f08ab5b9f64861445f to your computer and use it in GitHub Desktop.
Ubuntu 20.04 DNS Resolution
# Installing resolvconf in Ubuntu
sudo apt update
sudo apt install resolvconf
# Start
sudo systemctl start resolvconf.service
sudo systemctl enable resolvconf.service
sudo systemctl status resolvconf.service
# Edit Nameserver Entries
sudo vim /etc/resolvconf/resolv.conf.d/head
# Add "nameserver 8.8.8.8" or whatever IP you want for your upstream DNS
# Restart
sudo systemctl restart resolvconf.service
sudo resolvconf -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment