Fix forward/reverse DNS lookup for authentication.