summaryrefslogtreecommitdiffstats
path: root/src/shared/resolve-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-04-21 18:32:49 +0200
committerLennart Poettering <lennart@poettering.net>2020-04-22 19:38:04 +0200
commit082814743f6d118e73dc4d38adc4c19f3b2a57ec (patch)
treee26c9fab5112349a81b77b4cd3048619255232f3 /src/shared/resolve-util.h
parentMerge pull request #15526 from bluca/start_stop_wait_debug (diff)
downloadsystemd-082814743f6d118e73dc4d38adc4c19f3b2a57ec.tar.xz
systemd-082814743f6d118e73dc4d38adc4c19f3b2a57ec.zip
resolve: move resolv.conf path definitions to shared header
That way we can use it from nspawn.
Diffstat (limited to '')
-rw-r--r--src/shared/resolve-util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shared/resolve-util.h b/src/shared/resolve-util.h
index acf1f3dade..0524f1a74f 100644
--- a/src/shared/resolve-util.h
+++ b/src/shared/resolve-util.h
@@ -81,3 +81,12 @@ bool dns_server_address_valid(int family, const union in_addr_union *sa);
const char* dns_cache_mode_to_string(DnsCacheMode p) _const_;
DnsCacheMode dns_cache_mode_from_string(const char *s) _pure_;
+
+/* A resolv.conf file containing the DNS server and domain data we learnt from uplink, i.e. the full uplink data */
+#define PRIVATE_UPLINK_RESOLV_CONF "/run/systemd/resolve/resolv.conf"
+
+/* A resolv.conf file containing the domain data we learnt from uplink, but our own DNS server address. */
+#define PRIVATE_STUB_RESOLV_CONF "/run/systemd/resolve/stub-resolv.conf"
+
+/* A static resolv.conf file containing no domains, but only our own DNS server address */
+#define PRIVATE_STATIC_RESOLV_CONF ROOTLIBEXECDIR "/resolv.conf"