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).
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