I have set up samba and winbind and I can sucessfully ping a remote system by its netbios name without manually setting the ip to netbios name mapping in /etc/hosts. Everything works automatically but gethostbyname() still only returns the remote IP address instead of netbios name.
It only works by manually mapping the remote IP to its netbios name but that's not normal since I can resolve the remote name outsite of PHP.
Has anyone had this problem or knows the solution to it?
Thanks!