Results 1 to 3 of 3

Thread: DNS does not change !!

  1. #1
    Join Date
    2020-Jan
    Posts
    1

    DNS does not change !!

    hello everybody, i want to change my DNS
    actualy it is 192.168.1.1
    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 192.168.1.1 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
    2020-Jan
    Posts
    2
    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
    nameserver 8.8.8.8
    nameserver 208.67.222.222
    # nano /etc/dhcp/dhclient.conf
    add in "prepend domain-name-servers 8.8.4.4, 1.1.1.1;"
    # service network-manager restart
    # cat /etc/resolv.conf
    nameserver 8.8.8.8
    nameserver 208.67.222.222
    I would expect the results to give me...
    nameserver 8.8.4.4
    nameserver 1.1.1.1
    nameserver 8.8.8.8
    # NOTE: the libc resolver may not support more than 3 nameservers.
    # The nameservers listed below may not be recognised.
    nameserver 208.67.222.222
    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
  •