[tor-relays] name resolution with libc