1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 12:07:45 +00:00
serenity/Userland
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
..
Applications TextEditor: Allow picking non-proportional font 2021-02-15 08:50:48 +01:00
Demos LibGfx: Remove static load_from_file() from abstract Font class 2021-02-15 08:50:48 +01:00
DevTools Kernel+Userland: Give sys$recvfd() an options argument for O_CLOEXEC 2021-02-14 10:39:48 +01:00
DynamicLoader Revert "DynamicLoader: Remove unnecessary math functions" 2021-02-08 19:58:10 +01:00
Games Conway: Add interactivity 2021-01-22 22:14:08 +01:00
Libraries LibCore: Expose UDPServer::fd() and make the constructor protected 2021-02-15 09:14:42 +01:00
MenuApplets Everywhere: Drop "shared_buffer" in most GUI programs, pledge "recvfd" 2021-01-16 19:30:32 +01:00
Services LookupServer: Implement a DNS server :^) 2021-02-15 09:14:42 +01:00
Shell LibSyntax: Make rehighlight() take Gfx::Palette as by const-reference 2021-02-11 23:52:39 +01:00
Tests AK+Format: Don't cast to size_t when you want u64. 2021-02-13 19:47:06 +01:00
Utilities LibCrypto: Make a better ASN.1 parser 2021-02-14 13:30:10 +01:00
CMakeLists.txt Services: Move to Userland/Services/ 2021-01-12 12:23:01 +01:00