Results 1 to 7 of 7

Thread: resolv.conf modification?

  1. #1
    Join Date
    Jul 2008
    Beans
    32

    resolv.conf modification?

    What controls the nameservers that show up in /etc/resolv.conf? With a DHCP client that is. Does that setting get pulled from the LAN or is that something that the Local Host controls with DHCP?

    Gotta figure out what needs work, my router or my computer

  2. #2
    Join Date
    Oct 2005
    Location
    Milano, Italy
    Beans
    871
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: resolv.conf modification?

    Quote Originally Posted by blackhatbrigade View Post
    What controls the nameservers that show up in /etc/resolv.conf? With a DHCP client that is. Does that setting get pulled from the LAN or is that something that the Local Host controls with DHCP?

    Gotta figure out what needs work, my router or my computer
    They are not managed by resolv.conf, but by dhclient.conf; so edit the file:
    Code:
    sudo nano /etc/dhcp3/dhclient.conf
    change this line:
    Code:
    #prepend domain-name-servers 127.0.0.1;
    to
    Code:
    prepend domain-name-servers a.a.a.a,b.b.b.b,c.c.c.c;
    where a,b and c are the ip addresses of your DNS servers
    Then do:
    Code:
    sudo /etc/init.d/networking restart
    or reboot the machine
    ------------------------------------------------
    yep ”short and long URL„
    http://yep.it/
    ------------------------------------------------

  3. #3
    Join Date
    Jul 2008
    Beans
    32

    Re: resolv.conf modification?

    Should I assume that because that line is commented out that it currently gets the DNS server list from the router/DHCP Server?

    The reason I ask is because I'd rather just figure out the problem there so I don't have to do this to every machine on my network (or every machine that will be a part of network).

  4. #4
    Join Date
    Jul 2008
    Location
    fantasy island
    Beans
    41
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: resolv.conf modification?

    resolv.conf gets the list of its nameservers from network manager
    and the network manager is responsible for modifying resolv.conf...
    don't know the part bout dhcp...

  5. #5
    Join Date
    Jul 2008
    Beans
    32

    Re: resolv.conf modification?

    I've changed the DNS servers through the Network Manager before (I assume you're talking about the X utility) and the settings change after a while (seemingly at random) which makes me think it's controlled by the network and not the system. But I want to be sure before I start smacking my head against my router.

  6. #6
    Join Date
    Oct 2005
    Location
    Milano, Italy
    Beans
    871
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: resolv.conf modification?

    Quote Originally Posted by blackhatbrigade View Post
    Should I assume that because that line is commented out that it currently gets the DNS server list from the router/DHCP Server?

    The reason I ask is because I'd rather just figure out the problem there so I don't have to do this to every machine on my network (or every machine that will be a part of network).
    It's normal to get the dns configuration from DHCP server.
    You can bypass this changing (on every machine you needs on the same lan) the lines in dhclient.conf, otherwise as normal you get the DNS from DHCP (in your case from the router)
    ------------------------------------------------
    yep ”short and long URL„
    http://yep.it/
    ------------------------------------------------

  7. #7
    Join Date
    Jul 2008
    Beans
    32

    Re: resolv.conf modification?

    That's what I needed to know. Thanks!

    ** /me trudges off to beat his router into submission **

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
  •