Try DigitalOcean free for up to two months!

/etc/resolv.conf does not save changes!! PLS HELP ASAP!!

Discussion in 'General Linux' started by Rasputin, Jan 11, 2017.

  1. Rasputin

    Rasputin New Member

    Joined:
    Jan 11, 2017
    Messages:
    1
    Likes Received:
    0
    Yea my /etc/resolv.conf DOES NOT save changes made manually. I have tried to do sudo chattr -i /etc/resolv.conf but the output is
    chattr: Operation not supported while reading flags on /etc/resolv.conf

    The thing I want to do is to prevent DNS leaks by adding DNS servers there.
    I am running Kali Linux 2.0
    Please help me ASAP!

     
  2. danielino

    danielino New Member

    Joined:
    Jan 5, 2017
    Messages:
    2
    Likes Received:
    0
    which editor are you using for editing the file?
    can you please send the output of command:
    # echo "nameserver 8.8.8.8" >> /etc/resolv.conf
    # stat /etc/resolv.conf
     
  3. rstanley

    rstanley Active Member

    Joined:
    Aug 22, 2013
    Messages:
    306
    Likes Received:
    214
    resolv.conf gets rewritten every time you reboot.

    Please see this posting for a solution.

    Please also check the Kali website documentation.
     
    Manoj Maracheea likes this.

Share This Page