Find the answer to your Linux question:
Page 3 of 3 FirstFirst 1 2 3
Results 21 to 24 of 24
Your DHCP client's behavior is controlled by a file called dhclient.conf. Code: prepend domain-name-servers 127.0.0.1; Mine has this line to always put 127.0.0.1 as the first name server, because I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #21
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134

    Your DHCP client's behavior is controlled by a file
    called dhclient.conf.

    Code:
    prepend domain-name-servers 127.0.0.1;
    Mine has this line to always put 127.0.0.1 as the first
    name server, because I run one on the local host.

    You can use DHCP and still prepend whatever server you want.
    Check the man page for dhclient.

  2. #22
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Quote Originally Posted by HROAdmin26 View Post
    The default configuration on many home routers is that the DHCP server on the router only lists itself as the DNS server in the DHCP info sent to clients.
    Are you sure about this? I don't use my routes any more as my dhcp server but If memory serves me correctly it passed the dns server of my isp onto the client requestion a dhcp address.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #23
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Quote Originally Posted by rcgreen View Post
    Your DHCP client's behavior is controlled by a file
    called dhclient.conf.
    Thanks for this bit of information.
    I didn't know this.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  4. $spacer_open
    $spacer_close
  5. #24
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,761
    Quote Originally Posted by Lazydog View Post
    Are you sure about this? I don't use my routes any more as my dhcp server but If memory serves me correctly it passed the dns server of my isp onto the client requestion a dhcp address.
    Yes. The OP has a NetGear - between NetGear, DLink, and Linksys, you've covered 90+% of the home router market in the US.

    And as posted by the OP's research links:

    The dhcp servers always may not be properly setup to pass on the correct information about the dns and domain names to the clients. Or, you might want to add your own info. But, the modifications made to /etc/resolv.conf are last after rebooting or when the next time the dhcp client contacts the server.

    To retain the changes over reboot (restarting of network), you can edit /etc/dhcp3/dhclient.conf instead of resolv.conf

Page 3 of 3 FirstFirst 1 2 3

Posting Permissions

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