UNIX help required...

Thread: UNIX help required...

  1. tronads's Avatar

    tronads said:

    Help UNIX help required...

    Can anyone help me with this.
    I am working on a Kodibuntu box, but I do not have root access. I do however have superuser access with the built in kodi account.

    What I am needing to do is modify the dns settings in the /etc/resolv.conf file.

    So, I am logging in as the kodi user, then I am typing sudo su, or sudo -i and getting root level access.
    I am then modifying the /etc/resolv.conf file by using vi, and saving the file.

    I can then look in Kodi and view the network settings, and can see that they have changed. Also the plugin I needed to change the settings for is working.

    Unfortunately, the problem I have is that when I reboot the machine, the /etcresolv.conf file reverts back to its original format, minus the changes I have made. How is it doing this ?????

    If I type ls -ltr /etc/resolv.conf after I have made the changes, but before a reboot, I see the following :
    lrwxrwxrwx 1 root root 29 Dec 26 13:06 resolv.conf -> ../run/resolvconf/resolv.conf

    I have tried chmod'ing the file to 555 to prevent write access, but it makes no difference.

    Anyone know whats going on, and how I can stop it ?
     
  2. BertRoot's Avatar

    BertRoot said:

    Default Re: UNIX help required...

    You had a look at this mate?

    [Only registered and activated users can see links. ]

     
  3. tronads's Avatar

    tronads said:

    Default Re: UNIX help required...

    Yes, looks like this is the cause. I have done some edits, and will restart the machine after the Liverpool match to see if its worked :-)
     
  4. BertRoot's Avatar

    BertRoot said:

    Default Re: UNIX help required...

    Good luck sailor.

     
  5. tronads's Avatar

    tronads said:

    Default Re: UNIX help required...

    Made changes to both prepend and supersede in /etc/dhcp/dhclient.conf and also added in 2 nameservers in /etc/resolvconf/resolv.conf.d/base .
    Rebooted machine, and back to the same 127.0.0.1 value.

    FFS
     
  6. BertRoot's Avatar

    BertRoot said:

    Default Re: UNIX help required...

    [Only registered and activated users can see links. ] this any use?

     
  7. tronads's Avatar

    tronads said:

    Default Re: UNIX help required...

    Thats pretty much what I have been trying. Apparantly major changes to this resolvconf package have been made since 12.03 and I am not alone with this problem.
    After nearly 2 hours on it, I am thoroughly pissed off.
     
  8. BertRoot's Avatar

    BertRoot said:

    Default Re: UNIX help required...

    What a pain in the ass.

     
  9. blacksheep's Avatar

    blacksheep said:

    Default Re: UNIX help required...

    Create another resolv.conf file somewhere, have a startup script that runs after the wiping/changing linking/copying to the one you want and refresh network settings. Not the ideal solution but should work.