Results 1 to 3 of 3

Thread: DNS does not change !!

  1. #1
    Join Date

    DNS does not change !!

    hello everybody, i want to change my DNS
    actualy it is
    i want to add two other dns
    i tried to edit /etc/dhcp/dhclient.conf with nano and i have removed the hashtag on the line prepend domain-name-server and i have removed the and i added two DNSs and i have saved the file
    but after restaring the network service and run the commande cat /etc/resolv.conf
    the is no changes..
    can anyone help me please

  2. #2
    Join Date
    I am also having issues changing the DNS on Kali 2019.4. This method worked on previous versions of Kali but, doesn't seem to be working anymore.# cat /etc/resolv.conf
    # Generated by NetworkManager
    # nano /etc/dhcp/dhclient.conf
    add in "prepend domain-name-servers,;"
    # service network-manager restart
    # cat /etc/resolv.conf
    I would expect the results to give me...
    # NOTE: the libc resolver may not support more than 3 nameservers.
    # The nameservers listed below may not be recognised.
    I have seen a few others that have had this issue but nothing in regards to a fix. I think as work around I could just edit the resolver.conf but, would prefer to have it work correctly.
    Any help would be appreciated thank you.

  3. #3
    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

Similar Threads

  1. I cannot change my resolution
    By JimmyCC in forum General Archive
    Replies: 5
    Last Post: 2021-05-22, 08:58
  2. How can I change look of my kali?
    By mike van t in forum General Archive
    Replies: 0
    Last Post: 2020-05-27, 08:50
  3. Replies: 5
    Last Post: 2013-12-30, 15:33
  4. Change GDM in Kali
    By fantome195 in forum General Archive
    Replies: 4
    Last Post: 2013-07-17, 15:21

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts