How to manually configure dns in kali
There is a problem when updating the software source today, the progress is stuck, it is suspected that there is a problem with dns, ping Baidu domain name does not respond, our ip is a static ip configured by ourselves, so we need to set up dns
1. Open the terminal (terminal)
2. Check the original DNS
We can see that there are two nameservers, which are dns assigned in vmware bridge mode. Because it is bridge mode, these two nameservers are DNS server addresses in the real network environment.
This is the configuration of the DNS server in NAT mode. You can see that it is different here.
Let's use vim to modify it. If you are not used to using vim, you can use nano or gedit with GUI interface to edit
Move the cursor to the end of the last line, type o in command mode
Notice! ! This should be done under the root user, I forgot to explain in the previous article...
Here we have added two nameservers, Ali's 223.5.5.5 (223.6.6.6) and Google's 8.8.8.8
DNS service provider recommendation (in no particular order)
service provider | Cloud public DNS server IP list | |
---|---|---|
114DNS | 114.114.114.114 | 114.114.115.115 |
DNSPod DNS+ | 119.29.29.29 | 182.254.116.116 |
2402:4e00:: | ||
DNS Pie Telecom/Mobile/Railcom |
101.226.4.6 | 218.30.118.6 |
DNS Pie Unicom | 123.125.81.6 | 140.207.198.6 |
cnnicDNS | 1.2.4.8 | 210.2.4.8 |
2001:dc7:1000::1 | ||
GoogleDNS | 8.8.8.8 | 8.8.4.4 |
2001:4860:4860::8888 | 2001:4860:4860::8844 | |
CloudflareDNS | 1.1.1.1 | 1.0.0.1 |
2606:4700:4700::1111 | 2606:4700:4700::1001 | |
IBM Quad9DNS | 9.9.9.9 | |
2620:fe::fe | 2620:fe::9 | |
DNS.SB | 185.222.222.222 | 185.184.222.222 |
2a09:: | 2a11:: | |
OpenDNS | 208.67.222.222 | 208.67.220.220 |
2620:0:ccc::2 | 2620:0:ccd::2 | |
V2EXDNS | 199.91.73.222 | 178.79.131.110 |
Alibaba Cloud DNS | 223.5.5.5 | 223.6.6.6 |
2400:3200::1 | 2400:3200:baba::1 | |
Tencent Cloud DNS | 183.60.83.19 | 183.60.82.98 |
Baidu Cloud DNS | 180.76.76.76 | 2400:yes00::6666 |
Microsoft Cloud DNS | 4.2.2.1 | 4.2.2.2 |
HUAWEI CLOUD DNS | 122.112.208.1 | 139.9.23.90 |
114.115.192.11 | 116.205.5.1 | |
116.205.5.30 | 122.112.208.175 | |
139.159.208.206 | ||
Chunghwa Telecom DNS | 168.95.192.1 | 168.95.1.1 |
HKBN DNS | 203.80.96.10 | 203.80.96.9 |
Symantec Norton DNS | 199.85.126.10 | 199.85.127.10 |
oracle+dynDNS | 216.146.35.35 | 216.146.36.36 |
Credit Suisse DNS | 64.6.64.6 | 64.6.65.6 |
For more DNS, you can visit: National DNS Server IP Address Encyclopedia Public DNS Encyclopedia dns Address Encyclopedia dns Encyclopedia to view
After editing vim, type: esc key to switch command mode and type: wq to exit
4. Restart the network service
Then we type: service networking restart to restart the network service
Note that if you are not logged in as the root user, remember to add sudo
After restarting the service, the modification is successful!
Link to the original text: Kali manually configures DNS