Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hardillb/dns-to-mdns
Bridging normal DNS to mDNS
https://github.com/hardillb/dns-to-mdns
Last synced: 3 months ago
JSON representation
Bridging normal DNS to mDNS
- Host: GitHub
- URL: https://github.com/hardillb/dns-to-mdns
- Owner: hardillb
- License: apache-2.0
- Created: 2020-09-27T08:32:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-28T12:06:04.000Z (over 2 years ago)
- Last Synced: 2024-05-02T06:17:00.071Z (9 months ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# dns-to-mdns
A proxy to convert normal DNS requests to mDNS requests on the local LAN while forwarding other requests upstream.
## Running
You need to pass the upstream DNS IP address on the command line
```
$ node index.js 8.8.8.8
```To allow running as a normal user and still binding to port 53 run the following.
```
$ sudo setcap CAP_NET_BIND_SERVICE=+eip `which node`
```Be aware this will allow ANY nodejs app to bind to system ports.
Otherwise you can change the port that the bridge listens on by exporting the `DNS_PORT` environment variable
```
$ DNS_PORT=5300 node index.js 8.8.8.8
```