![]() If you don’t see the changes in nf file as displayed here then you can restart your linux machine. Upon restart, you can see the modified resolvconf file. Restart NetworkManager service and rvice after making all changes. vim /etc/network/interfacesĮnter your dns-nameserver which can be anything or you can use public DNS servers. Next we will modify the network interfaces file and will enter same set of DNS nameserver details. I have used CloudFlare and Google public DNS IP Addresses for demonstartion. You need to enter your desired set of nameserver details. First we need to make changes in resolvconf base file and then we will modify network interfaces file. You can see that it is still pointing to my router gateway address. cat /etc/nf Modifying resolvconf base and nf file with new servers We will check the service status after hitting the start command to make sure service enters into an active state. You need to enable and run the resolvconf service after installation. We need to use apt install comand to install the service first. Install and start resolvconf serviceīy default, Kali doesn’t have the resolvconf service pre-installed. Please be informed that if we will modify the file then it will be overwritten. Also you can check that this file is generated by NetworkManager service. ![]() In my case, it is pointing to my router IP and I have pointed router DNS IP to public ISP. To display the file content we can use cat command. Displaying current configuration of nf fileįile nf is located on etc folder path in Kali linux. So we will quickly go through from the steps to change DNS in Kali using command line interface. ![]() You might be in a scenerio where you want to change DNS in Kali itself due to some constraint. ![]() Instead it should be done at default router DHCP server. Usually it is not recommended to change the DNS in one specific host.
0 Comments
Leave a Reply. |