Ask the Expert

How can I get the DNS name of a system?

How can I get the DNS of a machine? I was asked to check whether each of the machines in a particular process could ping each other using the DNS. I can ping each using the IP address, but I am specifically being asked to ping each of them using the DNS. I am running Win2000.

    Requires Free Membership to View

There are many ways to get the DNS name of a system. You could do a "ping -a" on the IP address and see if a reverse lookup will provide it for you. You could also run "ipconfig /all" on each machine, which would also show you the host name and fully-qualified domain name. Or, you can use WMI (along with the Scriptomatic tool on the TechNet Script Center site) to programmatically read the value.

This was first published in November 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: