In the virtual machine bridging environment, it is found that BT5 r3 will automatically modify its own DNS
Step 1. Disable automatic DNS Modification
Use the following method to disable automatic DNS modification, retain the system's dns configuration (/etc/resolv. conf), and enter the terminal:
Sudo vi/etc/ppp/peers/dsl-provider ### this is the path of the configuration file for earlier linux versions
In BT5 r3, the configuration file path is/etc/ppp/peers/provider.
Find the userpeerdns line and comment out the line to disable the use of the dns automatically configured by China Telecom. Retain the dns using resolv. conf. The file is located in/etc/resolv. conf.
The provider content is as follows:
# Minimalistic default options file for DSL/PPPoE connections
Noipdefault
Defaultroute
Replacedefaultroute
Hide-password
# Lcp-echo-interval 30
# Lcp-echo-failure 4
Noauth
Persist
# Mtu 1492
# Persist
# Maxfail 0
# Holdoff 20
Plugin rp-pppoe.so eth0
# Usepeerdns
User
Ps: resolv. conf
/Etc/resolv. conf
This file is a DNS domain name resolution configuration file. Its format is very simple. Each line starts with a keyword, followed by configuration parameters. Resolv. conf has four keywords:
Nameserver
# Define the IP address domain of the DNS server
# Define the local domain name search
# Define a domain name search list sortlist
# Sort the returned domain names
An example of/etc/resolv. conf:
Nameserver 8.8.8.8
# This is a Google Domain Name Server
Step 2. Restart the network service
Sudo/etc/init. d/networking restart
If it still does not take effect, restart Linux to solve the problem.