Sign inSign up

letstool/http2dns

By letstool

•Updated 4 months ago

Fast & lightweight HTTP gateway that serves DNS queries as a JSON REST API.

Image
Networking
API management
Web servers
0

1.5K

letstool/http2dns repository overview

⁠http2dns

Lightweight HTTP gateway that resolves DNS queries through a JSON REST API.

Send a POST /api/v1/dns request, get DNS records back as structured JSON. Supports A, AAAA, CNAME, MX, NS, PTR, SOA, TXT, SRV, NAPTR, and ANY record types, with automatic UDP → TCP fallback for large responses.

The binary embeds a web UI (dark/light mode, 15 languages) and an OpenAPI 3.1 spec — no external files, no runtime dependencies.

⁠Quick start

docker run -p 8080:8080 letstool/http2dns:latest

Open http://localhost:8080⁠ to use the web UI, or query the API directly:

curl -s -X POST http://localhost:8080/api/v1/dns \
  -H "Content-Type: application/json" \
  -d '{"class":"IN","type":"A","record":"example.com"}' | jq 

⁠Configuration

CLI flagEnvironment variableDefault
--listen-addrLISTEN_ADDR127.0.0.1:8080
--dns-serversDNS_SERVERS8.8.8.8:53,8.8.4.4:53

CLI flags take priority over environment variables.

docker run -p 9090:9090 \
  -e LISTEN_ADDR=0.0.0.0:9090 \
  -e DNS_SERVERS=1.1.1.1:53,9.9.9.9:53 \
  letstool/http2dns:latest

## Repo

https://github.com/letstool/http2dns⁠


⁠License

This project is licensed under the Apache License, Version 2.0⁠.

Copyright (c) 2026 letstool.net

⁠See also

ProjectGitHubDocker HubDescription
http2dnsletstool/http2dns⁠letstool/http2dns⁠Fast & lightweight HTTP gateway that serves DNS queries as a JSON REST API
http2whoisletstool/http2whois⁠letstool/http2whois⁠Fast & lightweight HTTP gateway that serves WHOIS queries as a JSON REST API
http2rdapletstool/http2rdap⁠letstool/http2rdap⁠Fast & lightweight HTTP gateway that serves RDAP queries as a JSON REST API
http2geoipletstool/http2geoip⁠letstool/http2geoip⁠Fast & lightweight HTTP gateway that serves IP geolocation database as a JSON REST API
http2certletstool/http2cert⁠letstool/http2cert⁠Fast & lightweight HTTP gateway that serves X.509 certificate inspection as a JSON REST API
http2torletstool/http2tor⁠letstool/http2tor⁠Fast & lightweight HTTP gateway that serves Tor IP database as a JSON REST API
http2sunletstool/http2sun⁠letstool/http2sun⁠Fast & lightweight HTTP gateway that serves solar position algorithm as a JSON REST API
http2macletstool/http2mac⁠letstool/http2mac⁠Fast & lightweight HTTP gateway that serves MAC address OUI database as a JSON REST API
http2countryletstool/http2country⁠letstool/http2country⁠Fast & lightweight HTTP gateway that serves country database as a JSON REST API
http2prefixletstool/http2prefix⁠letstool/http2prefix⁠Fast & lightweight HTTP gateway that serves Internet BGP routing database as a JSON REST API
http2registryletstool/http2registry⁠letstool/http2registry⁠Fast & lightweight HTTP gateway that serves RIR/NIR Internet registry database as a JSON REST API

Tag summary

Content type

Image

Digest

sha256:855239374…

Size

2.7 MB

Last updated

4 months ago

docker pull letstool/http2dns