summaryrefslogtreecommitdiff
path: root/Userland/Services/LookupServer/LookupServer.h
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@serenityos.org>2021-05-04 14:47:42 +0300
committerAndreas Kling <kling@serenityos.org>2021-05-05 21:16:17 +0200
commitbb06e720deb849446d0630266d6066e8647ffbfa (patch)
treeef04a71746c945e94cc32faee22e80d027299ab4 /Userland/Services/LookupServer/LookupServer.h
parentfd76e073998908f96e5870ab42e8574ffa799e10 (diff)
downloadserenity-bb06e720deb849446d0630266d6066e8647ffbfa.zip
LookupServer: Implement basic mDNS support :^)
The implementation is extremely basic, and is far from fully conforming to the spec. Among other things, it does not really work in case there are multiple network adapters. Nevertheless, it works quite well for the simple case! You can now do this on your host machine: $ ping courage.local and same on your Serenity box: $ ping host-machine-name.local
Diffstat (limited to 'Userland/Services/LookupServer/LookupServer.h')
-rw-r--r--Userland/Services/LookupServer/LookupServer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Services/LookupServer/LookupServer.h b/Userland/Services/LookupServer/LookupServer.h
index 7390b865d1..a46ebffc54 100644
--- a/Userland/Services/LookupServer/LookupServer.h
+++ b/Userland/Services/LookupServer/LookupServer.h
@@ -9,6 +9,7 @@
#include "DNSName.h"
#include "DNSPacket.h"
#include "DNSServer.h"
+#include "MulticastDNS.h"
#include <LibCore/Object.h>
namespace LookupServer {
@@ -32,6 +33,7 @@ private:
RefPtr<Core::LocalServer> m_local_server;
RefPtr<DNSServer> m_dns_server;
+ RefPtr<MulticastDNS> m_mdns;
Vector<String> m_nameservers;
HashMap<DNSName, Vector<DNSAnswer>, DNSName::Traits> m_etc_hosts;
HashMap<DNSName, Vector<DNSAnswer>, DNSName::Traits> m_lookup_cache;