Change the pihole dnsmasq nameserver for specific domains
I was sent a link to https://archive.is (aka https://archive.today), but I couldn’t view it, because my home pihole uses the Cloudflare 1.1.1.1
resolver, and archive.is blocks lookups from Cloudflare for *reasons*.
Other resolvers like Google’s 8.8.8.8 aren’t blocked by archive.is, and with dnsmasq you can selectively change which resolver you want to use with a particular domain.
Edit /etc/dnsmasq.d/01-pihole.conf
and add:
server=/archive.is/8.8.8.8
server=/archive.ph/8.8.8.8
server=/archive.today/8.8.8.8
to the end of the file (ie. use 8.8.8.8 to resolv queries for archive.is, archive.ph and archive.today), and then restart the dnsmasq
process. With pihole, this is a built-in service so you need to:
sudo service pihole-FTL restart
All links, in order of mention:
- https://archive.is
- https://archive.today: https://en.wikipedia.org/wiki/Archive.today
- pihole: https://pi-hole.net
- 1.1.1.1 resolver: https://1.1.1.1/faq/
- archive.is blocks lookups from Cloudflare for *reasons*: https://news.ycombinator.com/item?id=19828317
- Google’s 8.8.8.8: https://developers.google.com/speed/public-dns
Recent posts:
- Patch for aarch64 (aka arm64) openssl 1.0.2 'relocation R_AARCH64_PREL64 against symbol OPENSSL_armcap_P error'
- TIL: the `NO_COLOR` informal standard to suppress ANSI colour escape codes
- Copy the contents of a branch into an existing git branch without merging
- Adding search to a static Jekyll site using pagefind
- asdf, python and automatically enabling virtual envs