I am trying to set dns for nameservers. I have changed in nano /etc/dhcp/dhclient.conf and restarted Network manager, but it only displays my internal IP not the changed dns servers??
Hello brightlite, I am glad that you use Kali Linux. It is a wonderful tool and kernel when used correctly. Now to answer your question it is probably because NetworkManager is handling your resolv.conf. You can try this:
root@kali:~# nmcli connection show Wired\ connection\ 1 | grep 'ipv4.dns:'ipv4.dns
root@kali:~# nmcli connection modify Wired\ connection\ 1 ipv4.dns root@kali:~# nmcli connection reload
I hope this fixes your problem.
There you go!
1 Like