Solved

Resolve Hostname to IP address in local domain

Posted on 2009-04-07
2
2,357 Views
Last Modified: 2012-05-06
I am attempting to resolve a hostname to a valid IP address in the LAN.
0
Comment
Question by:thelight22
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 26

Expert Comment

by:jar3817
ID: 24090407
You either need DNS setup on the lan that the clients use for resolving, or if we're only talking about a few computers, you can manually edit the hosts file on each machine.
0
 
LVL 8

Accepted Solution

by:
joefreedom earned 50 total points
ID: 24090465
Should you already have an environment setup that supports DNS, you can use windows command line utility to ping a hostname and it will resolve to an ip.  In the example below you can see that "hostname" was resolved to 10.1.10.1

To open windows command line:
Hit the (Windows Key) + (R) to bring up the "run" prompt.
Type "cmd" (no quotes) and hit OK.
C:\>ping hostname
 
Pinging hostname.domain.org [10.1.10.1] with 32 bytes of data:
 
Reply from 10.1.10.1: bytes=32 time<1ms TTL=128
Reply from 10.1.10.1: bytes=32 time<1ms TTL=128
Reply from 10.1.10.1: bytes=32 time<1ms TTL=128
Reply from 10.1.10.1: bytes=32 time<1ms TTL=128
 
Ping statistics for 10.1.10.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

Open in new window

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the most often confused topics in the area DNS is the idea of GLUE records. Specifically, what they are, when they are needed, when they are provided, and how they are created. First, WHAT IS GLUE? To understand GLUE, you must first under…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question