Welcome! Log In Create A New Profile

Advanced

Adding google dns servers in dhcp config

Posted by Vinay 
Vinay
Adding google dns servers in dhcp config
June 17, 2016 03:39AM
Is there a way to add Google dns or Open dns servers in dhcp config file?
Re: Adding google dns servers in dhcp config
June 17, 2016 03:54AM
Add the nameserver to your resolv.conf.

cat /etc/resolv.conf
nameserver 8.8.8.8

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Adding google dns servers in dhcp config
July 21, 2016 05:38PM
edit the file /etc/dhcp/dhclient.conf and find the line:

#prepend domain-name-servers 127.0.0.1;

Modify that to:
prepend domain-name-servers 8.8.8.8 8.8.4.4;
Re: Adding google dns servers in dhcp config
September 21, 2016 01:56AM
wilbert-vb Wrote:
-------------------------------------------------------
> edit the file /etc/dhcp/dhclient.conf and find the
> line:
>
>
> #prepend domain-name-servers 127.0.0.1;
>
>
> Modify that to:
>
> prepend domain-name-servers 8.8.8.8 8.8.4.4;
>

Excellent, this actually worked.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: