summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-manager.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-01 17:03:28 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-01 18:10:01 +0200
commit5cb36f41f01cf4b1f4395abfffd1b33116591e58 (patch)
tree1b8b7e319ce4d7d3ea94a3e84aa9e41723270faa /src/resolve/resolved-manager.h
parentafe7fd56f5b5b81294dcb794214f97fc5e39dfea (diff)
resolved: read the system /etc/resolv.conf unless we wrote it ourselves
This way we integrate nicely with foreign network management stacks, such as NM.
Diffstat (limited to 'src/resolve/resolved-manager.h')
-rw-r--r--src/resolve/resolved-manager.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve/resolved-manager.h b/src/resolve/resolved-manager.h
index 03386f0a4f..7bb18c0d66 100644
--- a/src/resolve/resolved-manager.h
+++ b/src/resolve/resolved-manager.h
@@ -78,6 +78,9 @@ struct Manager {
LIST_HEAD(DnsServer, fallback_dns_servers);
DnsServer *current_dns_server;
+ bool read_resolv_conf;
+ usec_t resolv_conf_mtime;
+
LIST_HEAD(DnsScope, dns_scopes);
DnsScope *unicast_scope;
@@ -111,6 +114,7 @@ struct Manager {
int manager_new(Manager **ret);
Manager* manager_free(Manager *m);
+int manager_read_resolv_conf(Manager *m);
int manager_write_resolv_conf(Manager *m);
bool manager_known_dns_server(Manager *m, int family, const union in_addr_union *in_addr);