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
NetworkingWindows NetworkingWindows Server 2008

Avatar of undefined
Last Comment
Gareth Gudger

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Gareth Gudger

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Paul MacDonald

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Ricardo Martínez

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

ronnypot

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.
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?
Your help has saved me hundreds of hours of internet surfing.
fblack61
Paul MacDonald

What do you mean PING doesn't work?  What happens when you try it?
ronnypot

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

ASKER
tried

ping hostname

and

ping hostname.xxx.xxx.xxx

but not working as yet
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
jazz__man

ASKER
When I ping it says destination unreachable
Gareth Gudger

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

ASKER
What? An nslookup on the hostname?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
jazz__man

ASKER
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.
jazz__man

ASKER
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 Gudger

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.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.