Results 1 to 5 of 5

Thread: Is there any way to fetch the ip address/Host name of the Domain controller

  1. #1
    Join Date
    May 2008
    Posts
    10

    Is there any way to fetch the ip address/Host name of the Domain controller

    Hi,
    I want to write a code to fetch the ip address/Host name of the domain controller machine from the local machine.As there any Windows API or any WMI query which will return the ip address/Host name of the domain controller machine from the local machine?

  2. #2
    Join Date
    Dec 2007
    Posts
    1,599
    why would you want to write a code to fetch the ip address?
    You can directly go to whois.sc & other lookup websites for the same.

  3. #3
    Join Date
    May 2008
    Posts
    10
    Actually i want to use dcdiag tool for dns health check up.I guess we need to run the dcdiag in the domain controller machine.so i want to write a code which will fatch the domain controller from the local machine and execute the dcdiag tool with the fetched domain controller ip.

  4. #4
    Join Date
    Sep 2005
    Posts
    1,476

  5. #5
    Join Date
    May 2008
    Posts
    10
    Thanks a lot for ur help...I found one more way to get the Primary Domain Controller's name that is using WMI.

Similar Threads

  1. IMpact of changing the IP address of a Domain Controller
    By Ian Wilson in forum Active Directory
    Replies: 6
    Last Post: 31-10-2011, 08:33 PM
  2. Replies: 4
    Last Post: 11-08-2010, 09:22 PM
  3. mass storage controller/ SDA standard compliant SD host controller
    By EllingSon in forum Vista Hardware Devices
    Replies: 1
    Last Post: 24-06-2009, 04:39 PM
  4. Replies: 4
    Last Post: 15-05-2009, 11:48 AM
  5. How to change the IP address of Main Domain Controller
    By John in forum Windows Server Help
    Replies: 2
    Last Post: 08-05-2007, 04:33 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,886,914.24534 seconds with 17 queries