Step 1: Add a DNS configuration file
1. As shown in the figure, find "network" in Mac OS preference settings and click to enter.
2. Now we can set dns in the pop-up network window. Here I use wired as an example.
3. Click "edit location", as shown in the following figure.
4. In the pop-up dialog box, click the "+" button and a new network configuration file is created. Change it to "work" here, and click "finish", as shown in the figure.
5. Also, click the "advanced" icon in the network window to enter
6. Now you will find a "DNS" column. Click it.
7. In the dns window, we also click the "+" icon. Then we can add a DNS server address for the computer, as shown in the figure.
8. After setting dns, click "OK" (this is the same as windows's confirmation function)
9. Click "application" to save the network configuration file we have added.
Step 2: switch DNS
1. On the Apple computer, click "location" under "Apple logo"
2. After entering, we can choose whether it is automatic or work. This can be quickly switched.