ladybird/Base
Sergey Bugaev 373d135e74 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.
2021-02-15 09:14:42 +01:00
..
etc LookupServer: Implement a DNS server :^) 2021-02-15 09:14:42 +01:00
home/anon FileManager: Add layout options to View menu 2021-02-13 11:01:59 +01:00
res Resources: Add SerenitySans Truetype font to /res/fonts 2021-02-15 08:50:48 +01:00
usr Base: Don't mark "prot_exec" pledge promise as a SerenityOS extension 2021-02-12 16:24:40 +01:00
www Base: Replace <!DOCTYPE> with <!DOCTYPE html> in a few files (#1511) 2020-03-26 07:37:12 +01:00