Results 1 to 9 of 9

Thread: resolv.conf

  1. #1
    Join Date
    Dec 2007
    Beans
    72
    Distro
    Ubuntu 11.04 Natty Narwhal

    resolv.conf

    Hi All

    I volunteer with a Computers for Schools program and we are trying to set up a disless remote boot in linux. We are using ubuntu and Clonezilla. One of the first things is says to do is to remove network manager. Here is a link to what we are using. http://drbl.sourceforge.net/one4all When we did that we had to manually set our ip address. Problem is that we can not access resolv.conf to manually set name server. It is in a lrwxrwxrwx resolv.conf -> ..run/resolvconf/resolv.conf. When I cat resolv.conf, it doesn't work. I have not tried vim resolv.conf would that work. I am not at the computer we are setting it up on at this time. We are using ubuntu 12.4.
    Maybe there is a better way to go about this? We are not the best with command line.

    Thanks, Doug

  2. #2
    Join Date
    Jul 2012
    Beans
    172
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: resolv.conf

    Have you tried running your commands as root using sudo?

  3. #3
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    14,640
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: resolv.conf

    Thread moved to Networking & Wireless.

  4. #4
    Join Date
    Apr 2012
    Beans
    5,127

    Re: resolv.conf

    I don't understand what you're doing but a lot has changed recently with name resolution - I suspect you may need to remove (or otherwise disable) resolvconf - and possibly dnsmasq as well to get completely back to the old-style networking service as defined /etc/network/interfaces

    http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/

  5. #5
    Join Date
    Dec 2007
    Beans
    72
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: resolv.conf

    We are trying to setup Clonezilla. Haven't figured out why they say to remove network manager. I was trying to manually set the dns address and was unable to access resolv.conf. We did try using sudo but that didn't work. This is a steep learning process we are going through. What we are doing is setting up one computer then copying drive and pushing image out to several computers when we set up several computers. The hard drive on the computer we were using died and we are trying to set up a new computer to image drive with.

    Thanks, Doug

  6. #6
    Join Date
    Jul 2007
    Location
    Burlington, NC
    Beans
    1,994
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: resolv.conf

    I have set up a few Clonezilla servers on Ubuntu 10.04 and can successfully repeat the process in a reasonably short amount of time.

    I tried 1 12.04 box this summer and it never worked reliably. PXE booting machines would randomly hang during the boot process and only sometimes make it all the way through. I know that for 10.04 the PXE booting machines put up a log message about workarounds in use due to Upstart instead of a traditional init system. I think it will be tweaked to work with 12.04 someday.

    Until then, 10.04 might be a better way to go especially if all you need is the Clonezilla features and not the full blown DRBL.
    Last edited by asmoore82; August 12th, 2012 at 08:49 AM.

  7. #7
    Join Date
    Dec 2007
    Beans
    72
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: resolv.conf

    Thanks for the info. I will see if I have a copy of 10.4 laying around.


    Thanks again, Doug

  8. #8
    Join Date
    Dec 2007
    Beans
    72
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: resolv.conf

    Hi All Ubuntu 12.4

    How can I access this file to view the address of the DNS servers?

    lrwxrwxrwx resolv.conf -> ..run/resolvconf/resolv.conf

    On older versions I could cat resolv.conf and view the file but I can not view the file above. Have tried using sudo. Do they put DNS info in a different place?

    Thanks, Doug

  9. #9
    Join Date
    Mar 2005
    Beans
    211

    Re: resolv.conf

    The symbolic link /etc/resolv.conf -> ../run/resolvconf/resolv.conf puts the resolv.conf file under the control of the resolvconf utility, which is now part of the Ubuntu base system. When resolvconf is in control you have to configure things the resolvconf way. The resolvconf way is to associate nameserver addresses with interfaces; the addresses get added to resolv.conf when the associated interfaces are configured and get removed when those interfaces are de-configured. If you have a simple system with one interface, eth0, configured using ifup then you should edit /etc/network/interfaces and add a line

    dns-nameservers 1.2.3.4

    to the "iface eth0" stanza. Then "ifdown eth0" and "ifup eth0". See the "resolvconf" man page for more information.

    If you want a static resolv.conf file then replace the symlink /etc/resolv.conf with a static file.

Bookmarks

Posting Permissions

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