I've copied the text from the reference manual from here
Verifies the certificate cert is issued to hostname
This function can be overwritten by providing alternative function as part of the options.checkServerIdentity option passed to tls.connect(). The overwriting function can call tls.checkServerIdentity() of course, to augment the checks done with additional verification.
So, my question is what are the checks done in tls.checkServerIdentity() to verify certificate ? does it include dns resolution of host present in request ? I'm doing a mutual auth tls and would like to do dns resolution of host if its not done already in the tls.checkServerIdentity()