1. apt install dnsmasq -y
2. vim /etc/dnsmasq.d/resolv.conf
address=/xxx.yyy.com/21.xx.xx.x
3. service dnsmasq start
4. iptables -I INPUT 1 -p udp --dport 53 -j ACCEPT
本文介绍如何通过安装并配置DNSMasq服务来实现特定域名的自定义DNS解析,包括安装DNSMasq、修改配置文件指定解析规则、启动服务及设置防火墙规则等步骤。
1. apt install dnsmasq -y
2. vim /etc/dnsmasq.d/resolv.conf
address=/xxx.yyy.com/21.xx.xx.x
3. service dnsmasq start
4. iptables -I INPUT 1 -p udp --dport 53 -j ACCEPT
5733

被折叠的 条评论
为什么被折叠?