DNS related issues

1. Specify the domain name resolution path

The resolution of the domain name specifies the IP address for resolution, instead of using the default WAN IP of the Internet, the IP obtained by other WANs is used.
Domain name resolution path

2. Access to fixed DNS

iptables -t nat -I PREROUTING -i br0 -p tcp --dport 53 -j DNAT --to-destination 221.130.33.60
iptables -t nat -I PREROUTING -i br0 -p udp --dport 53 -j DNAT --to-destination 221.130.33.60

Reminder:
If there is any unclear description in the above article, please comment in the comment area. If you have time, we will reply as soon as possible, thank you!

Guess you like

Origin blog.csdn.net/qq_20677327/article/details/106974274