Re: Find AD hostname from Linux command line
- From: "Kurt" <lorentzenkurt@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 11 Aug 2006 19:12:23 -0700
A couple of possibilities. Most likely the Linux DHCP server is assigning
the hostname that is being registered in DNS. You should be able to turn
that off on the DHCP server and the Windows box by default will use its
NetBIOS name (computername) as it's hostname.
If you do an nslookup from the Windows box you should get the same results
as you do on the Linux box. If not, then the source of the DNS names must be
different DNS servers. To check the hostname on an XP box, just type
"hostname' at the command prompt (at least that works on Server 2003).
Also, I'm not sure whether you were being specific in your post as far as
the reverse lookup resolution goes, but ad.mydomain.com and mydomain.com are
two different zones.
....kurt
<google@xxxxxxxxxxxx> wrote in message
news:1155341763.100719.139880@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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: google
- Re: Find AD hostname from Linux command line
- References:
- Find AD hostname from Linux command line
- From: google
- Find AD hostname from Linux command line
- Prev by Date: Re: Newbie needs help understanding DNS
- Next by Date: Re: Find AD hostname from Linux command line
- Previous by thread: Find AD hostname from Linux command line
- Next by thread: Re: Find AD hostname from Linux command line
- Index(es):
Relevant Pages
|