Skip to content

sskender/thedns

Repository files navigation

The DNS

Run a public AdGuardHome DNS-sinkhole on AWS infrastructure.

Based on articles (but automated for deployment on AWS with Terraform):

AdGuardHome Commands - Reminder

Go to installation directory:

cd /opt/adguard

Start or stop AdGuardHome service:

./AdGuardHome -s start
./AdGuardHome -s stop
./AdGuardHome -s status

Encryption

Make sure port 80 is available before running lego. Either move the AdGuardHome HTTP server to a different port or temporarily disable it.

Download and install lego:

mkdir /opt/lego
cd /opt/lego

wget "https://github.com/go-acme/lego/releases/download/v4.27.0/lego_v4.27.0_linux_amd64.tar.gz" # update version
tar -xzf lego_v4.27.0_linux_amd64.tar.gz

Obtain certificate:

./lego --email="dns@sskender.com" --domains="dns.sskender.com" --http run

Renew certificate:

./lego --email="dns@sskender.com" --domains="dns.sskender.com" --http renew

TODO

  • Automate lego certificate renewal
  • Automate installation on server
  • Add secondary server for high availability

FAQ

  • Can I just use your DNS server? - Yes, why not. Just set your clients to use https://dns.sskender.com/dns-query.
  • Can I use DoH on iPhone? - Yes, check out this cool guy https://dns.notjakob.com/.

About

Run a public AdGuard DNS-sinkhole on AWS

Topics

Resources

License

Stars

Watchers

Forks

Languages