]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: move resolv.conf path definitions to shared header
authorLennart Poettering <lennart@poettering.net>
Tue, 21 Apr 2020 16:32:49 +0000 (18:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 22 Apr 2020 17:38:04 +0000 (19:38 +0200)
That way we can use it from nspawn.

src/resolve/resolved-resolv-conf.c
src/shared/resolve-util.h

index 6afc193f69c7553c420ae88c8a6897c586b5c273..c06213f4867fd2bed64e5a60436c926daea03ce7 100644 (file)
 #include "strv.h"
 #include "tmpfile-util-label.h"
 
-/* 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"
-
 int manager_check_resolv_conf(const Manager *m) {
         struct stat st, own;
 
index acf1f3dade9a2d20aa275c5ca89489d424deea49..0524f1a74f1868680d390658e3b212a8a062b53e 100644 (file)
@@ -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"