Fixes #7372 - Smart proxy return 400 when DNS entry not found