mdns-resolver-forwarder
mdns-resolver-forwarder
NodeJS script that acts as a DNS resolver/forwarder but checks mDNS first. This was written to act as a DNS resolver for Docker containers that can't resolve mDNS addresses (*.local
) on their own.
Config
Edit config.js
:
listen_ip
- IP address on the host to bind tolisten_port
- Port number on the host to bind to (probably port53
for most cases)authority_ip
- IP address of the resolver to use if local mDNS lookup failsauthority_port
- Port number of theauthority_ip
aboveauthority_type
- The DNS query type to use (probablyudp
for most cases)authority_timeout
- Timeout to wait on the authority to respondmdns_timeout
- Time to wait for mDNS to response before forwarding the query to the authority/resolverlocal_only
- Only listen for*.local
domains. Setting this totrue
will instantly forward any request that contains non-.local
domains to the resolver (for faster response)
See more at [ github.com ]