<a href="
https://hellodk.cn/post/124" target="_blank">使用 DNSmasq 部署家庭网络的公共 dns 和个性化的局域网内的 dns 域名服务</a> 分享一下我的做法,楼主可以参考一下
这个文件的内容 重启后就没了?会不会是你本地的 dnsmasq 服务没有启动 或缺少配置
resolv.conf is the name of a computer file used in various operating systems to configure the system's Domain Name System (DNS) resolver. The file is a plain-text file usually created by the network administrator or by applications that manage the configuration tasks of the system. The resolvconf program is one such program on FreeBSD or other Unix machines which manages the resolv.conf file. (来自维基百科)