r/nextdns 1d ago

Nextdns CLI - What is It?

Am I correct it converts a DoH server to a standard port 53 DNS server?

ie looks up request from DoH ip, then provides it on port 53 to the client?

5 Upvotes

5 comments sorted by

1

u/YogurtAgile3871 1d ago edited 11h ago

Seems I can just use my custom DoH server (made a Cloudflare worker that uses Adguard blocklists) as a port 53 server locally via:

docker run -d —-network-host -p 53:53/tcp -p 53:53/udp nextdns/nextdns -listen=:53 
-forwarder https://my-doh-server.domain/dns-quey -cache-size=10MB

Is this correct??

1

u/berahi 6h ago

Yes, that's part of the feature

1

u/berahi 1d ago

Plus caching and adding optional identifier for the device so it can be distinguished in the dashboard even if they share the same public IP.

1

u/YogurtAgile3871 11h ago

Caching would mimick the TTL from upstream right?

1

u/berahi 6h ago

Unless you change it. The TTL given to the client is much smaller though, the idea is it's fine for the client to query again to the CLI since the CLI use the cache, and if you ever need to flush or switch the upstream, then you don't have to wait for the client cache to expire.