Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My question is regarding the host name mapped to a machine's IP. I am new to Linux, I have a machine to test whether our j2ee based web application runs fine in linux box. we are able to deploy our application and successfully and even able to access the same in that machine. But when I tried accessing it through another machine in the same network, I am not able to access the URL using the hostname specified, instead I am able to access if I provide the ipaddress.

I tried putting nslookup MyIP# command to know the name of the ip in the DNS server, where I got some junk; when I tried to access with that name I am able to access the machine.

Kindly provide me inputs to change the hostname of this machine in that domain server.

Thanks in Advance!!


share|improve this question

migrated from Aug 12 '10 at 6:43

This question came from our site for professional and enthusiast programmers.

I believe this question might be more suitable for since it's not a programming question. – Gilead Aug 12 '10 at 4:47
you question is too vague your not giving us anything to help you out. – Prix Aug 12 '10 at 7:02
We can't help you if you don't give more details about the dns server, it's configuration, etc.. – radius Aug 12 '10 at 8:08

The problem will lie with your DNS server having old/outdated DNS entries - try checking them on the DNS server.

share|improve this answer

Either you need to setup a hostname A record in your own Domain you control, either on your name server or through your domain registrar that points at the IP address of the server.

Or on the machine you are testing from you can add a record to the local hosts file. I assume you are using Windows, so here is more info about the hosts file

If you want to change the reverse lookup that you got by doing "nslookup IP" you need to contact the owner of the IP address, typically the ISP. You can find out who owns it by checking the whois registry

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.