How to Change DNS Settings in Windows

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.

 dnslib 0.9.7 

Test

   

Linux

Local Use

Change the DNS Name Server

  1. Change the value of Local_dns_server in conf/config.json to your computer’s 127.0.0.1
  2. Add nameserver 127.0.0.1 to /etc/resolvconf/resolv.conf.d/base
  3. sudo resolvconf -u
  4. sudo systemctl restart network-manager.service

Start

  • sudo python start.py

Update

  • python update.py

LAN Sharing

  1. Change the value of Local_dns_server in conf/config.json to the computer’s
    ip
  2. firewall-cmd –add-port=53/udp     –permanent
  3. sudo python start.py
  4. On the same LAN, just change the DNS on other devices to the local IP of the computer
    running the program

General Method

  1. Change the value of Local_dns_server in conf/config.json to the computer’s 0.0.0.0
  2. firewall-cmd –add-port=53/udp     –permanent
  3. Add a
    # before dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf
  4. Add nameserver 127.0.0.1 to /etc/resolvconf/resolv.conf.d/base
  5. sudo resolvconf -u
  6. sudo systemctl restart network-manager.service
  7. Restart the computer
  8. 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

  1. sudo python start.py
  2. Change the DNS server to 127.0.0.1
  3. Restart the network service and browser
  • Update hosts: python update.py

Windows

Start

  1. Switch the command line to the current directory
  2. python start.py

Update

  • python update.py

Leave a Comment

Your email address will not be published. Required fields are marked *

中文 EN
🚀

RedGate VPN

免费节点太挤太慢?
升级高速稳定专线

立即体验 →

告别卡顿

RedGate VPN
全球高速节点

免费下载 →
Scroll to Top