dnsmasq搭建本地dns服务

dnsmasq搭建本地dns服务安装dnsmasqsudo aptitude install dnsmasq配置dnsmasqsudo nano /etc/dnsmasq.conf# 取消注释#port=5353,dnsmasq默认端口为5353port=5353# 取消注释#resolv-file= ,不注释默认使用/etc/resolv.conf,但每次这个都会被重写,配置麻烦。resolv-