Enrollent Token. Can we totally set to false permanently?

Basically adding a new elasticsearch nodes, it require the adding of enrollment token and it is checked by ip address. Our certificates provided hostname but elasticsearch checks ip only. Is there a way to use hostname instead?

This was the response when create enrollment token:
No subject alternative names matching IP address xxx .xxx .xxx .xxx found .