1、功能解析:
域名TTL:DNS服务器中域名解析记录的保留时间,单位为秒
2、查询DNS记录
nslookup 域名
windows下查询:
nslookup smartdns. 域名
3、查询是否开启TCP/UDP服务
netstat -tlpn |grep 7053
tlpn解析:-t 选项用于显示 TCP 连接,-l 选项用于显示监听状态的连接,-n 选项用于显示 IP 地址和端口号,-p 选项用于显示与连接关联的进程信息。
openwrt网络重启命令:
/etc/init.d/network restart
测试广告:
nslookup ad.azure.com
查询53端口:
netstat -tlpn |grep 53
启用dnsmasq服务的自动启动,输入以下命令:
/etc/init.d/dnsmasq enable
启动dnsmasq服务,输入以下命令:
/etc/init.d/dnsmasq start
停止dnsmasq服务,输入以下命令:
/etc/init.d/dnsmasq stop
关闭dnsmasq服务,输入以下命令:
/etc/init.d/dnsmasq disable
重启dnsmasq服务,输入以下命令:
/etc/init.d/dnsmasq restart
文章评论