A lot of users who use Apple Mac computers may need to switch different Dns addresses in different network environments. It's a lot of trouble if you change it manually every time. Here is a small series to introduce a DNS server address can be set first, and then you can quickly in the system to switch the DNS address method. The detailed procedure is as follows:
First step, add the DNS configuration file
1, first open the Mac OS System Preferences, click on the list to open the "network" icon, as shown in the figure
2. Next, on the left side of the network window, select the network interface for which you want to set up DNS. Here I take the cable interface as an example, after selecting a good interface, click on the "Location" drop-down list, as shown in the figure
3. Then select the Edit Location option, as shown in the figure
4. In the pop-up edit window, click the "+" button at the bottom right, then create a new network configuration file for the location. I'll change it to "work" here, OK, then click the "Finish" button, as shown in the figure
5. Next, in the Network window, click on the "Advanced" button in the lower right, as shown in the figure
6. Next, click on the "DNS" column at the top, as shown in the figure
7. In the DNS Settings window, click the "+" button at the bottom left to add a DNS server address, as shown in the figure
8. After the DNS address is entered, click on the "OK" button in the bottom right corner, as shown in the image.
9. Then click the "Apply" button in the bottom right corner of the network window to save the network configuration file we are currently adding, as shown in the figure
Step two, switch DNS
1. Next click on the Apple logo in the System menu bar at the top of the screen to see a "location" option in the popup menu, as shown in the figure
2, then you can see that there are two DNS configuration files, one is the work we have just established, the other is the system default automatic. If you want to switch, just click on the appropriate location, as shown in the figure
3. If you normally need to switch multiple DNS addresses, you can also add multiple profiles to the network location.