I have been asked for the hostname of an ipaddress and for an ipaddress for a hostname on intranet, but can't get access to servers.

jazz__man
jazz__man used Ask the Experts™
on
Hi

I am in a corporate environment and have requested access to certain servers through the firewall. The infrastructure engineer has asked for hostnames for the two ipaddresses I provided and for one server I had the name but he wants the ipaddress.

Not being big on networking I don't want to make a fool of myself so what should I do? My idea of getting the hostname would be to log onto the server, find the hosts file and beside the ip would be the server hostname. But why am I being asked for this if I cannot even access the server yet??

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Solution Architect
Most Valuable Expert 2014
Top Expert 2014
Commented:
You can use NSLOOKUP.

Go to a command prompt and type NSLOOKUP.

Then enter the IP you know. If the PTR record was created correctly for the server, it will return the hostname.
Paul MacDonaldDirector, Information Systems
Commented:
if you PING the hostname, you'll be told the IP address.

As noted above, NSLOOKUP will give you the host name for a provided IP address.
Ricardo MartínezInformation Security

Commented:
If you ping the Hostname you can obtain the ip address when the DNS resolves:

ping yourhostname

Open in new window


if you nslookup the ip address it will return the hostname:

nslookup 127.0.0.1

Open in new window

Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Top Expert 2011

Commented:
Instead of nslookup you can also do a PING -A ip address to reolve the hostname.

To get the ip address you indeed only need to do a PING hostname.

Author

Commented:
Ok, thanks so much, the nslookup works but pinging the hostname to resolve to IP does not work.

Is there anything else I can do?
Paul MacDonaldDirector, Information Systems

Commented:
What do you mean PING doesn't work?  What happens when you try it?
Top Expert 2011

Commented:
do you use the fqdn for the server, so hostname.domain.local

Author

Commented:
tried

ping hostname

and

ping hostname.xxx.xxx.xxx

but not working as yet

Author

Commented:
When I ping it says destination unreachable
Gareth GudgerSolution Architect
Most Valuable Expert 2014
Top Expert 2014

Commented:
Did you do an NSLOOKUP? Are you internal when you try NSLOOKUP? May not work over a VPN if locked down.

Author

Commented:
What? An nslookup on the hostname?

Author

Commented:
Actually, nothing is actually working, its coming up with the same ipaddress and hostname no matter what ipaddress or hostname I do a nslookup on.

Author

Commented:
If this is not possible from my end then that's fine, I can take steps to have this resolved from the infrastructure department.
Gareth GudgerSolution Architect
Most Valuable Expert 2014
Top Expert 2014

Commented:
An NSLOOKUP should work, unless a PTR record was never created for your server. In that case you would just have to log into the server.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial