Skip to content

"ERROR Failed to verify hostname" - Is there a resolution for this? #8197

Answered by scholzj
kdavid76 asked this question in Q&A
Discussion options

You must be logged in to vote

This is essentially an issue with how your DNS is configured. ZooKeeper does TLS hostname verification through a reverse DNS lookup. So essentially:

  1. It is told to connect to something like tao-zookeeper-0.tao-zookeeper-nodes.kafka.svc
  2. It resolves it to the IP address 192.168.29.161
  3. It connects to this address and gets the certificate
  4. Then it does a reverse lookup of the IP address 192.168.29.161 and checks if the DNS name it gets back is in the TLS certificate subject alternative names. And in your case, the DNS tells it that this IP belongs to apps.besztercekk.hu => and that is obviously in the certificate as it has nothing to do with the actual address of the ZooKeeper nodes. So it fails.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@kdavid76
Comment options

@LawrenceB5477
Comment options

Answer selected by scholzj
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants