diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-04-21 18:32:49 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-04-22 19:38:04 +0200 |
commit | 082814743f6d118e73dc4d38adc4c19f3b2a57ec (patch) | |
tree | e26c9fab5112349a81b77b4cd3048619255232f3 /src/shared/resolve-util.h | |
parent | Merge pull request #15526 from bluca/start_stop_wait_debug (diff) | |
download | systemd-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.h | 9 |
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" |