Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
Last active September 15, 2025 23:39
Show Gist options
  • Save lidgnulinux/50dfba009a06603e6381a3ade7847e13 to your computer and use it in GitHub Desktop.
Save lidgnulinux/50dfba009a06603e6381a3ade7847e13 to your computer and use it in GitHub Desktop.
Unblock blocked sites inside chroot.

I'm using dnscrypt-proxy on main machine and also using firefox inside chroot. I get network working but some site are blocked inside chroot unlike my host. To unblock them I just figured out a simple trick. Turns out I just need to make the resolv.conf from inside chroot using same nameserver like my host (which is 127.0.0.1).

$ cat /etc/resolv.conf
nameserver 127.0.0.1

After set it up, exit the chroot and reenter.

To make sure, we can use dig command.

/ # dig +short txt qnamemintest.internet.nl
a.b.qnamemin-test.internet.nl.
"v=spf1 -all"
"HOORAY - QNAME minimisation is enabled on your resolver :)!"
/ # 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment