Fix type in dns comparison