Ali Mohammad Pur
ff311c1560
RequestServer+LibDNS: Don't .await() the DNS lookup promise
...
...and make sure it will eventually complete (or fail) by adding a
timeout retry sequence.
Fixes an issue where RequestServer would stick around after exit,
waiting for piled up DNS requests for a long time.
2024-11-25 11:46:35 +01:00
Pavel Shliak
cd14b215d1
LibDNS: Clean up #include directives
...
This change aims to improve the speed of incremental builds.
2024-11-21 14:08:33 +01:00
Ali Mohammad Pur
63a5717bc7
LibDNS: Immediately resolve IPv4/IPv6 "hostnames" if A/AAAA is queried
...
This makes e.g. lookup(192.168.1.1, A) resolve to the IP instead of
querying DNS for the IP.
2024-11-20 21:37:58 +01:00
Ali Mohammad Pur
c5afe58540
LibDNS: Add a default entry for localhost
...
In the future, we may want to parse /etc/hosts (or equivalent) into the
cache; this commit only adds localhost to make the normal workflow work.
2024-11-20 21:37:58 +01:00
Ali Mohammad Pur
3bcd91b109
LibDNS: Hide some debug logs behind DNS_DEBUG
2024-11-20 21:37:58 +01:00
Ali Mohammad Pur
6911c45bab
LibDNS: Respect records' TTL in the resolver cache
2024-11-20 21:37:58 +01:00
Ali Mohammad Pur
7e20f4726f
LibDNS+LibWeb+Ladybird+RequestServer: Let there be DNS over TLS
...
This commit adds our own DNS resolver, with the aim of implementing DoT
(and eventually DoH, maybe even DNSSEC etc.)
2024-11-20 21:37:58 +01:00