summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2005-04-30 16:39:21 +0200
committerMichael Brown2005-04-30 16:39:21 +0200
commit6cd0fa58076b3827d780db6afb9c9db5d041d5b6 (patch)
treee5ce13ff7809009be2e942dbf945667e3356ca97 /src
parentTFTP API changed. (diff)
downloadipxe-6cd0fa58076b3827d780db6afb9c9db5d041d5b6.tar.gz
ipxe-6cd0fa58076b3827d780db6afb9c9db5d041d5b6.tar.xz
ipxe-6cd0fa58076b3827d780db6afb9c9db5d041d5b6.zip
Added DNS resolver configuration option.
Diffstat (limited to 'src')
-rw-r--r--src/config.h10
-rw-r--r--src/core/config.c8
2 files changed, 18 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index 879d0255a..22f28fe5a 100644
--- a/src/config.h
+++ b/src/config.h
@@ -66,6 +66,16 @@
/* @BEGIN general.h
*
+ * Name resolution modules
+ *
+ */
+
+#define DNS_RESOLVER /* DNS resolver */
+
+/* @END general.h */
+
+/* @BEGIN general.h
+ *
* Obscure configuration options
*
* You probably don't need to touch these.
diff --git a/src/core/config.c b/src/core/config.c
index 59db783c7..71f656cf3 100644
--- a/src/core/config.c
+++ b/src/core/config.c
@@ -169,3 +169,11 @@ REQUIRE_OBJECT ( pc_kbd );
#ifdef RELOCATE
REQUIRE_OBJECT ( relocate );
#endif
+
+/*
+ * Drag in any required resolvers
+ *
+ */
+#ifdef DNS_RESOLVER
+REQUIRE_OBJECT ( dns_resolver );
+#endif