stefanwerfling / flyingfish

FlyingFish is a reverse proxy manager with own WebUI, DNS server, SSH server, DynDNS, UPNP support, Lets Encrypt and much more.
https://flying-fish.gitbook.io/
GNU General Public License v3.0
56 stars 7 forks source link

DNS Server with proxy header #42

Open stefanwerfling opened 9 months ago

stefanwerfling commented 9 months ago

About the current flow, the nginx accepts the connection as a stream and gives it to the DNS server. This does not see the client's IP but the nginx IP, which is 127.0.0.1. The DNS server still needs an attachment for the proxy header. Once this is implemented, the DNS server can then decide which record answer it gives (e.g. for internal or external IPs).

Inquiry to the developer, so far no response: https://github.com/song940/node-dns/issues/81