Adding DNS addresses into /etc/resolv.conf
来源:互联网 发布:开发者 读书app 知乎 编辑:程序博客网 时间:2024/05/25 23:57
https://askubuntu.com/questions/627899/nameserver-127-0-1-1-in-resolv-conf-wont-go-away
NetworkManager is the program which (via the resolvconf utility) inserts address127.0.1.1
intoresolv.conf
. NM inserts that address if an only if it is configured to start an instance of the dnsmasq program to serve as a local forwarding nameserver. That dnsmasq instance listens for queries at address 127.0.1.1.
If you do not want to use a local forwarding nameserver then configure NetworkManager not to start a dnsmasq instance and not to insert that address. In/etc/NetworkManager/NetworkManager.conf
comment out the linedns=dnsmasq
sudo nano /etc/NetworkManager/NetworkManager.conf[main]plugins=ifupdown,keyfile,ofono#dns=dnsmasq
and restart the NetworkManager service.
sudo service network-manager restart
In this mode, NetworkManager updates /etc/resolv.conf
(still via resolvconf) to include the nameserver addresses NetworkManager has for active connections.
If you want to disable the resolvconf mechanism for updating resolv.conf and just use a static resolv.conf file, do the following.
ls /etc/resolv.conf -llrwxrwxrwx 1 root root 29 Mar 5 13:45 /etc/resolv.conf -> ../run/resolvconf/resolv.confsudo rm -f /etc/resolv.conf # Delete the symbolic linksudo nano /etc/resolv.conf # Create static file# Content of static resolv.confnameserver 8.8.4.4nameserver 8.8.8.8
- Adding DNS addresses into /etc/resolv.conf
- Linux /etc/resolv.conf 配置DNS
- DNS域名解析 linux /etc/resolv.conf
- Linux /etc/resolv.conf 配置DNS
- ubuntu dns文件/etc/resolv.conf详解
- DNS域名解析的配置文件/etc/resolv.conf
- Linux /etc/resolv.conf 配置DNS
- Linux下/etc/resolv.conf 配置DNS客户
- Linux下/etc/resolv.conf 配置DNS客户
- Linux下/etc/resolv.conf 配置DNS客户
- ubuntu 11.10 /etc/resolv.conf文件重启被清除,dns设置
- DNS 域名解析設定 /etc/resolv.conf 檔案
- Linux下/etc/resolv.conf 配置DNS客户
- CentOS的DNS服务器配置文件/etc/resolv.conf重置问题
- linux下的 /etc/resolv.conf ---DNS域名解析配置文件
- Linux中/etc/resolv.conf文件,配置DNS
- /etc/resolv.conf
- /etc/resolv.conf
- 二进制方式安装docker
- 最基础的启动脚本编写
- java中sleep()的用法
- poj 1191 把一个矩形分成n块,求其均方差最小 dp
- MySQL日记——使用脚本批量插入数据
- Adding DNS addresses into /etc/resolv.conf
- 抽象类与接口学习笔记
- Python语言中的类型之字符串型--Python(11)
- 设计模式详解
- 1.4.ARM裸机第四部分-GPIO和LED
- 多重部分和问题 dfs
- 《软技能-代码之外的生存能力》第四篇——生产力
- Disable Network Manager in Ubuntu
- Github全面详解-13解决文件冲突