Skip to content

Instantly share code, notes, and snippets.

@jamesridgway
Created May 29, 2021 09:32
Show Gist options
  • 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