Bootstrap

linux mint 安装 dnsmasq 服务

  1. 安装
sudo apt-get -y install dnsmasq
  1. 安装成功,启动失败。端口占用的问题,停止占用的服务
sudo systemctl stop systemd-resolved.service 
sudo systemctl disable systemd-resolved.service 
  1. 重启 dnsmasq 服务
 sudo systemctl restart dnsmasq.service
  1. 配置 dnsmasq 解析
    进入 /etc/dnsmasq.d 文件夹并创建 conf resolv 两个文件夹

vim /etc/dnsmasq.conf 最后一行添加

# Include all files in /etc/dnsmasq.d except RPM backup files
conf-dir=/etc/dnsmasq.d/conf,.rpmnew,.rpmsave,.rpmorig

vim /etc/dnsmasq.d/conf/dns.conf

# Change this line if you want dns to get its upstream servers from
# somewhere other that /etc/resolv.conf
#resolv-file=
resolv-file=/etc/dnsmasq.d/resolv/resolv.conf

# Add domains which you want to force to an IP address here.
# The example below send any host in double-click.net to a local
# web-server.
#address=/double-click.net/127.0.0.1
address=/nofeel.test/192.168.1.8
# --address (and --server) work with IPv6 addresses too.
#address=/www.thekelleys.org.uk/fe80::20d:60ff:fe36:f83

# Add the IPs of all queries to yahoo.com, google.com, and their
# subdomains to the vpn and search ipsets:
#ipset=/yahoo.com/google.com/vpn,search

/etc/dnsmasq.d/resolv/resolv.conf

nameserver 223.5.5.5
nameserver 114.114.114.114
nameserver 8.8.8.8

悦读

道可道,非常道;名可名,非常名。 无名,天地之始,有名,万物之母。 故常无欲,以观其妙,常有欲,以观其徼。 此两者,同出而异名,同谓之玄,玄之又玄,众妙之门。

;