summaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index aae8e9eb2..c91cc3b31 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -373,6 +373,15 @@ void Init(int ac, char **av)
if (ModuleManager::LoadModule(Config->SocketEngine, NULL))
throw FatalException("Unable to load socket engine " + Config->SocketEngine);
+ try
+ {
+ DNSEngine = new DNSManager();
+ }
+ catch (const SocketException &ex)
+ {
+ throw FatalException(ex.GetReason());
+ }
+
/* Add Core MSG handles */
moduleAddMsgs();