the word order of the english sentence is incorrect.
the correct sentence would be 'Doesn't the judge know the lawyer?'
Or "Does the judge not know the lawyer?"
I agree.
I could hear someone expressing surprise by asking, "The judge doesn't (even) know the lawyer?" But that would be somewhat unusual and that's not the way that question is typically asked.