Skip to main content

A simple Django app to serve DOH.

Project description

Django-doh is a simple Django app to serve a DOH (DNS Over HTTPS) Proxy. It resolves DNS query on HTTP.

Quick start

  1. Install via pip:

    pip install django-doh
  2. Add “doh_server” to your INSTALLED_APPS setting like this:

  3. Include the polls URLconf in your project like this:

    from doh_server.views import doh_request
    path('dns-query', doh_request),
  4. Add the conf in your settings like this:

    DOH_SERVER = {
        "RESOLVER": "internal",
        # "RESOLVER": "",
        "AUTHORITY": "",
        "LOGGER_LEVEL": "DEBUG",

For use local resolver set on the server who run Django use “internal”.

Use with Firefox

in about:config edit:


For the URI, add your URI for your reverse proxy serving Django.

You can use Nginx as reverse proxy

events {
http {
    server {
        listen 443 ssl http2 default_server;
        location /dns-query {
            proxy_set_header Host $host;
        ssl_certificate /etc/nginx/cert.pem;
        ssl_certificate_key /etc/nginx/key.pem;

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-doh, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django-doh-0.1.0.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page