LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-02-2012, 11:06 PM   #1
nooralain
Member
 
Registered: Apr 2012
Distribution: Centos,ubuntu
Posts: 49

Rep: Reputation: Disabled
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
 
Old 05-03-2012, 02:52 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 05-03-2012, 10:58 AM   #3
nooralain
Member
 
Registered: Apr 2012
Distribution: Centos,ubuntu
Posts: 49

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-03-2012, 01:25 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
"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.
 
Old 05-03-2012, 02:03 PM   #5
nooralain
Member
 
Registered: Apr 2012
Distribution: Centos,ubuntu
Posts: 49

Original Poster
Rep: Reputation: Disabled
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
servernameort

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..

Last edited by nooralain; 05-04-2012 at 04:58 AM.
 
Old 05-03-2012, 02:06 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 05-03-2012, 08:15 PM   #7
nooralain
Member
 
Registered: Apr 2012
Distribution: Centos,ubuntu
Posts: 49

Original Poster
Rep: Reputation: Disabled
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?
 
Old 05-03-2012, 09:03 PM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.

Last edited by jschiwal; 05-03-2012 at 09:04 PM.
 
Old 05-04-2012, 01:58 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
So show us the /etc/hosts entry, so us the config.

Entries in /etc/hosts WORK. They just do.
 
Old 05-04-2012, 05:27 AM   #10
nooralain
Member
 
Registered: Apr 2012
Distribution: Centos,ubuntu
Posts: 49

Original Poster
Rep: Reputation: Disabled
Thumbs up

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
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	9
Size:	75.4 KB
ID:	9604   Click image for larger version

Name:	Untitled.png
Views:	9
Size:	165.8 KB
ID:	9605  
 
Old 05-04-2012, 05:31 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Ugh this is hopeless, so so confusing trying to work out what you actually want help with...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to resolve hostname edgjerp Linux - Software 2 05-13-2008 04:00 AM
DHCP can't resolve Hostname pramka Linux - Networking 4 12-03-2007 01:50 PM
Resolve hostname from IP cornish Linux - Networking 10 10-10-2007 10:21 AM
resolve hostname linuxtesting2 Solaris / OpenSolaris 5 03-20-2007 12:27 AM
Unable to resolve hostname adirock2 Linux - Networking 14 07-06-2005 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration