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:
@@ -36,6 +36,12 @@ int main()
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (fork() == 0)
|
||||
{
|
||||
execl("/bin/resolver", "resolver", NULL);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
bool first = true;
|
||||
|
||||
termios termios;
|
||||
|
||||
Reference in New Issue
Block a user