From 373d135e7492d63f14915d989e4e3e97d63f028c Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Sun, 14 Feb 2021 17:24:23 +0300 Subject: 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. --- Base/etc/LookupServer.ini | 1 + 1 file changed, 1 insertion(+) (limited to 'Base/etc') 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 -- cgit v1.2.3