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 port53for most cases)authority_ip- IP address of the resolver to use if local mDNS lookup failsauthority_port- Port number of theauthority_ipaboveauthority_type- The DNS query type to use (probablyudpfor 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*.localdomains. Setting this totruewill instantly forward any request that contains non-.localdomains to the resolver (for faster response)
See more at [ github.com ]