Userspace: Implement super simple DNS resolver in userspace

You connect to this service using unix domain sockets and send the
asked domain name. It will respond with ip address or 'unavailable'

There is no DNS cache implemented so all calls ask the nameserver.
This commit is contained in:
2024-02-08 03:14:00 +02:00
parent 218456d127
commit 2424f38a62
6 changed files with 306 additions and 1 deletions

View File

@@ -36,6 +36,12 @@ int main()
exit(1);
}
if (fork() == 0)
{
execl("/bin/resolver", "resolver", NULL);
exit(1);
}
bool first = true;
termios termios;