zoraxy icon indicating copy to clipboard operation
zoraxy copied to clipboard

[ENHANCEMENTS] Internal DNS provider

Open GeorgeGedox opened this issue 5 months ago • 0 comments

Is your feature request related to a problem? Please describe. Not related to a problem. A potential feature that I've not seen implemented anywhere else currently. Something similar to this project https://github.com/k8s-gateway/k8s_gateway And internal DNS resolver that would resolve all queries with proxy results

Describe the solution you'd like Have a DNS resolver on port 53 that when queried about a domain that is being handled by Zoraxy would return the associated proxy.

Exmaple: Let's assume the following:

  • Zoraxy is setup on 192.168.0.200
  • The domain example.com with subdomain test.example.com is being handled by Zoraxy
  • example.com uses the internal static web server
  • test.example.com is is set up as a proxy for 192.168.0.10:3000

Now, if I run a query like this dig @192.168.1.200 test.example.com I should get this response:

; <<>> DiG 9.18.30-0ubuntu0.22.04.2-Ubuntu <<>> @192.168.1.200 test.example.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22796
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: 9156574dad0b3470 (echoed)
;; QUESTION SECTION:
;test.example.com.                 IN      A

;; ANSWER SECTION:
test.example.com.          30      IN      A       192.168.0.200

;; Query time: 0 msec
;; SERVER: 192.168.1.200#53(192.168.1.200) (UDP)
;; WHEN: Sun Jul 27 13

This basically tells anyone querying the DNS that the queried domnain is being resolved by Zoraxy.

This would allow people like me to add the DNS as a resolver in my router or DNS server to get an immediate answer on where to solve the domain, eliminating the need to manually add the Zoraxy ip address to my host file or DNS server for every new domain I add, saving lots of time when dealing with many domains.

Describe alternatives you've considered None, haven't found other projects doing this

Additional context https://github.com/k8s-gateway/k8s_gateway does this already for kubernetes and I'm using this in my own cluster to solve all ingresses to a local load balancer in my network

GeorgeGedox avatar Jul 27 '25 10:07 GeorgeGedox