The 15-Year-Old iptables Rule That Broke My DNS

One of my servers has a weird problem after every reboot: it can ping IP addresses just fine, but it can&rsquo;t resolve any DNS names. $ ping 8.8.8.8 # works $ ping google.com # ping: google.com: Temporary failure in name resolution I&rsquo;ve been working around this for a while now: after every reboot I&rsquo;d SSH in and overwrite /etc/resolv.conf to point straight at 8.8.8.8 instead of the…