Prevent core from doing DNS requests when UDP is disabled.