summaryrefslogtreecommitdiff
path: root/interface.h
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2016-09-13 14:33:39 +0200
committerFelix Fietkau <nbd@nbd.name>2016-09-14 13:01:29 +0200
commit7f6be657e2dabc185417520de4d0d0de2580c27d (patch)
tree69952ac03877a4f0a2ac7ae90481b725a6a0cb2f /interface.h
parent83d3a901d3178a8840092b6e4f7f829b89da4ba0 (diff)
downloadnetifd-7f6be657e2dabc185417520de4d0d0de2580c27d.tar.gz
interface-ip: DNS name server sorting support in resolv.conf.auto
Interface name servers when being written to resolv.conf.auto are sorted based on the following parameters: -Primary sorting key is interface dns_metric; name servers having lowest interface dns_metric are listed first -Secondary sorting key is interface metric; in case of equal interface dns_metric name servers having lowest interface metric are listed first -Finally alphabetical order of the interface names in case of equal interface dns_metric and metric In case the resolver queries the multiple servers in the order listed; sorting is usefull in the following scenarios : -Name resolving over a main and backup interface -Assign priority to IPv6 name servers over IPv4 or vice versa Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'interface.h')
-rw-r--r--interface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/interface.h b/interface.h
index 5b89b17..aa2085d 100644
--- a/interface.h
+++ b/interface.h
@@ -145,6 +145,7 @@ struct interface {
struct vlist_tree host_routes;
int metric;
+ int dns_metric;
unsigned int ip4table;
unsigned int ip6table;