[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dhclient and ipv6 DNS Servers



On 14/01/20 9:37 pm, Rainer Dorsch wrote:

> /etc/dhcp/dhclient.conf does not accept ipv6 addresses like, since if I
> use the instructions from
> 
>  
> 
> https://developers.google.com/speed/public-dns/docs/using
> 
>  
> 
> and add to /etc/dhcp/dhclient.conf
> 
>  
> 
> prependdomain-name-servers 2001:4860:4860::8888, 2001:4860:4860::8844;
> 
> dhclient becomes unhappy (during an ifup eth0.1)
> 
>  
> 
> /etc/dhcp/dhclient.conf line 26: semicolon expected.
> 
> prepend domain-name-servers 2001:
> 
> ^
> 
> /etc/dhcp/dhclient.conf line 26: expecting a statement.
> 
> prepend domain-name-servers 2001:4860:4860::8888, 2001:4860:4860::8844;
> 
> ^
> 
> /etc/dhcp/dhclient.conf line 26: semicolon expected.
> 

Hi Rainer,

From dhcp-options(5), it looks like you need:

prepend dhcp6.name-servers 2001:4860:4860::8888, 2001:4860:4860::8844;

instead. I haven't tried it myself.

Richard

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: