Find AD hostname from Linux command line
- From: google@xxxxxxxxxxxx
- Date: 11 Aug 2006 17:16:03 -0700
We have a large pool of Windows XP machines that receive their IP
addresses via a Linux-based DHCP server. These IP addresses are pooled
and are not statically assigned, so at any given moment a particular
machine can have any one of several IP addresses.
To minimize confusion, we have these Windows XP machine automatically
register themselves with the college's Active Directory, so, even
though the IP address for a given machine may change, its Windows
machine name does not change.
For example, I will set up a workstation with machine name "lancelot".
After it boots, if I log onto a Windows machine and do a ping against
"lancelot.ad.mydomain.com" I will get a response.
Now the problem: I have a Linux server that needs to know this
machine's Windows name (i.e., "lancelot") given the machine's (current)
IP address. If I do a simple nslookup on this IP address I get
something like "dhcp-27.mydomain.com" rather than the desired
"lancelot.ad.mydomain.com".
I understand I could use some kind of NETBIOS name resolution using
samba, but is there any other way? Is there a way to query the Active
Directory server directly using simple Linux tools to get the machine
name?
.
- Follow-Ups:
- Re: Find AD hostname from Linux command line
- From: Kurt
- Re: Find AD hostname from Linux command line
- Prev by Date: Newbie needs help understanding DNS
- Next by Date: Re: Newbie needs help understanding DNS
- Previous by thread: Newbie needs help understanding DNS
- Next by thread: Re: Find AD hostname from Linux command line
- Index(es):
Relevant Pages
|