Skip to content

Instantly share code, notes, and snippets.

@penguinpowernz
Last active October 17, 2021 21:30
Show Gist options
  • Save penguinpowernz/9924335 to your computer and use it in GitHub Desktop.
Save penguinpowernz/9924335 to your computer and use it in GitHub Desktop.
BECAUSE FUCK resolvconf
# THIS FILE MAY BE EDITED MANUALLY
nameserver 192.168.3.1
nameserver 8.8.8.8
# BECAUSE FUCK resolvconf
#!/bin/bash
sudo apt-get purge resolvconf
sudo unlink /etc/resolv.conf
sudo touch /etc/resolv.conf
sudo cat > /etc/resolv.conf << EOF
# THIS FILE MAY BE EDITED MANUALLY
nameserver 192.168.3.1
nameserver 8.8.8.8
# BECAUSE FUCK resolvconf
EOF
@piengeng
Copy link

Yes, screw resolveconf!

@Parsiuk
Copy link

Parsiuk commented Nov 15, 2016

Thank you kind Sir :)

@hiragashi
Copy link

I still struggle to see why I need to enter my DNS server details each reboot just for the sake of it. I guess the first few times was OK, but after about the billionth time of not being able to resolve hostnames on boot, well it does enough to make me wanna kick the heck outta the computer. Surely there has to be an incentive for these numpties not to fix such a broken POS.

I just googled "fuck resolv.conf" and it brings you straight here. nice one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment