diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2021-02-14 17:24:23 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-15 09:14:42 +0100 |
commit | 373d135e7492d63f14915d989e4e3e97d63f028c (patch) | |
tree | dac7bd8d6cba81ac25a8e03f5fa0849c65247abb /Base/etc | |
parent | bc05ab47de561f267e4df902a9bd869f8979b019 (diff) | |
download | serenity-373d135e7492d63f14915d989e4e3e97d63f028c.zip |
LookupServer: Implement a DNS server :^)
LookupServer can now itself server as a DNS server! To service DNS clients, it
uses the exact same lookup logic as it does for LibIPC clients. Namely, it will
synthesize records for data from /etc/hosts on its own (you can use this to
configure host names for your domain!), and forward other questions to
configured upstream DNS servers. On top of that, it implements its own caching,
so once a DNS resource record has been obtained from an upstream server,
LookupServer will cache it locally for faster future lookups.
The DNS server part of LookupServer is disabled by default, because it requires
you to run it as root (for it to bind to the port 53) and on boot, and we don't
want either by default. If you want to try it, modify SystemServer.ini like so:
[LookupServer]
Socket=/tmp/portal/lookup
SocketPermissions=666
Priority=low
KeepAlive=1
User=root
BootModes=text,graphical
and enable server mode in LookupServer.ini like so:
[DNS]
Nameservers=...
EnableServer=1
If in the future we implement socket takeover for IP sockets, these limitations
may be lifted.
Diffstat (limited to 'Base/etc')
-rw-r--r-- | Base/etc/LookupServer.ini | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Base/etc/LookupServer.ini b/Base/etc/LookupServer.ini index 9fedd22837..b7185e689b 100644 --- a/Base/etc/LookupServer.ini +++ b/Base/etc/LookupServer.ini @@ -1,2 +1,3 @@ [DNS] Nameservers=1.1.1.1,1.0.0.1 +EnableServer=0 |