Link to home
Start Free TrialLog in
Avatar of jazz__man
jazz__man

asked on

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.

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
ASKER CERTIFIED SOLUTION
Avatar of Gareth Gudger
Gareth Gudger
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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

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.
Avatar of jazz__man
jazz__man

ASKER

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?
What do you mean PING doesn't work?  What happens when you try it?
do you use the fqdn for the server, so hostname.domain.local
tried

ping hostname

and

ping hostname.xxx.xxx.xxx

but not working as yet
When I ping it says destination unreachable
Did you do an NSLOOKUP? Are you internal when you try NSLOOKUP? May not work over a VPN if locked down.
What? An nslookup on the hostname?
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.
If this is not possible from my end then that's fine, I can take steps to have this resolved from the infrastructure department.
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.