resolve hostname HOWTO
i have set up two vms
one linux one xp i can ping both from each other setup hostname and ip of the linux machine in the etc host files of xp nslookup linuxhostname does not work firewall close in xp |
nslookup is for name servers, it will not look in hosts files. If you decide to set up a DNS service, then you can do that, possibly with dnsmasq under Linux, which is very very simple to use. If you do not want a DNS service, then you woudl look up manually add all details to all host files.
|
I dint get you exactly
am wanting to connect the two vms so that i can connect the ldap server to ma windows xp machine i want xp machine to reslove the ip addresss so i added like " 198.168.60.3 ldapserver so how am gonna be able to resolve that |
"connect"?? what does that mean? in terms of resolving, the above still stands. You either use a DNS server, or you manually add entries to host files.
|
letme make it more clear
i've got an ldapmachine name ldapserver in the xp machine i got a Business intelligence software which uses ldap to authenticate (i can ping both machines to each other) when adding ldap to The software we get an option where we have to add servername:port here its ldapserver:389 which ain't working so i want to know how can i assure that the computer is able to connect to the ldap machine.. |
OK, so you want to put in the address of the ldap server... so YET AGAIN, you need DNS or local /etc/hosts file entries. OR just put the IP address in. In fact, I recommend that is what you do, don't rely on DNS for a low level serice like LDAP.
|
man i have previously posted that i have added the ip and hostname
in the picture its there It aint working .... i can show you through a video but i guess you being a moderator have got some rules to not goto external links? |
In Linux you can use "getent hosts <hostname>" to test whether name resolution is working. Remember that Windows also has a hosts file. I'm not certain which hosts file you edited. You could also try entering the IP address in place of the hostname. The software should be smart enough to recognize the difference.
If other services use the LDAP server successfully, start by looking for logs for this business intelligence software. You mentioned that it is used for authentication. What error do you see. It could be that your network connection is working, but the LDAP server doesn't have the client information entered needed to authorize the client. In other words, it may be a software configuration problem and not a networking issue. You could use netstat on the LDAP server to verify that port 589 is being listened to. You can use wireshark to examine network traffic. I think I would start looking for logs first. The problem might not be network related. |
So show us the /etc/hosts entry, so us the config.
Entries in /etc/hosts WORK. They just do. |
2 Attachment(s)
the linux host file pic is uploaded
192.168.70.1 is the windows xp link and windows etc host file is in the previous post getent does not work ? i can ping machines from each other i will show you the ldap server it starts perfectly with no errors... localmessages img uploaded Btw its port 389 i got it wrong typed previously yup trying with ip addresses i done that does not work ldap server works perfectly with the ldap browser |
Ugh this is hopeless, so so confusing trying to work out what you actually want help with...
|
All times are GMT -5. The time now is 06:59 PM. |