Re: DNS-server priority



On Wed, 2015-08-19 at 15:45 +0200, Pieter Cardoen wrote:
Dear all
How can you assign a dns-server priority order? My device has a maximum of five active connections at the 
same time and gets multiple dns-server addresses but should prefer one assigned by the dhcp client on eth0.

Typically you'd set connections that you don't want to be "primary" as
'never-default'.  That means they won't be candidates for the default
route, and that also means their DNS servers will always be secondary to
whatever connection has the default route.  So only connection 'eth0'
should be set never-default for your setup.  You could also explicitly
ignore automatic DNS information on those other connections to achieve
the same result.

Dan



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