dowsDNS
Package download
Download dowsDNS
Features:
- Supports hosts files (for ad blocking, plus other nice things)
- Supports wildcard resolution (pointing to the SNI server, where nice things happen)
- Supports edns-client-subnet (resolves to the server closest to you)
- Can be used as a small public DNS server, or as a local DNS service
If the service target differs, you need to modify the value of Public_Server in conf/config.json
False means it listens on the local LAN IP for use
True means it listens on the public IP for use
If filled in incorrectly, it will cause edns-client-subnet to fail.
Test
Linux
Local Use
Change the DNS Name Server
-
Change the value of
Local_dns_server in conf/config.jsonto your computer’s127.0.0.1 -
Add
nameserver 127.0.0.1to/etc/resolvconf/resolv.conf.d/base sudo resolvconf -u-
sudo systemctl restart network-manager.service
Start
sudo python start.py
Update
python update.py
LAN Sharing
-
Change the value of
Local_dns_serverinconf/config.jsonto the computer’s
ip -
firewall-cmd –add-port=53/udp –permanent sudo python start.py-
On the same LAN, just change the DNS on other devices to the local IP of the computer
running the program
General Method
-
Change the value of
Local_dns_serverinconf/config.jsonto the computer’s0.0.0.0 -
firewall-cmd –add-port=53/udp –permanent -
Add a
# beforedns=dnsmasqin/etc/NetworkManager/NetworkManager.conf -
Add
nameserver 127.0.0.1to/etc/resolvconf/resolv.conf.d/base sudo resolvconf -u-
sudo systemctl restart network-manager.service - Restart the computer
-
On the same LAN, just change the DNS on other devices or this computer to
the local IP of the computer running the program
Mac
sudo python start.py- Change the DNS server to 127.0.0.1
- Restart the network service and browser
- Update hosts:
python update.py
Windows
Start
- Switch the command line to the current directory
python start.py
Update
python update.py