https://bugs.openldap.org/show_bug.cgi?id=10291
--- Comment #5 from Aki Tuomi cmousefi@gmail.com --- After looking at the source code of openldap, it seems that my system is resolving things just fine, it's the LDAP client choosing to use server's hostname as validation target instead of localhost.
So this is expected behaviour but for different reason you claimed.