Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   dhcp + static dns (http://www.linux-archive.org/centos/463261-dhcp-static-dns.html)

12-09-2010 01:23 AM

dhcp + static dns
 
On Dec 8, 2010, at 4:24 PM, Mike Burger wrote:

>> Hi all,
>>
>> Not having issues setting this in Ubuntu or Windows but I cannot seem
>> to add a static DNS or search path without it getting over written
>> when networks restarts.
>>
>> The file dhclient.conf seems ignored.
>>
>> I would like to simply have a fixed DNS and search path added to what
>> ever was found by the dhcp client.
>>
>> So I don't think peersdns=no is an option.
>>
>> Any advice is greatly appreciated.
>
> I note that you've specified in your message that you've specified the
> option as "peerdns" but it should be uppercase, a la:
>
> PEERDNS=no

Yes, I know.

>
>
> As to the static IP, that's specified from the DHCP server. If you're
> running a Linux based DHCP server, you set up the dhcpd.conf like so
> for
> that client
>
> host some-system {
> hardware ethernet XX:XX:XX:XX:XX;
> fixed-address XXX.XXX.XXX.XXX;
> }
>


Well, I as wrong, /etc/dhclient.conf is respected by the OS and works
when I add;

supersede domain-name "value";
prepend domain-name-servers value;

no quotes on the second value.

- aurf


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


All times are GMT. The time now is 12:04 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.