Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 value.com; 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!!

Jay

share|improve this question

migrated from stackoverflow.com 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 superuser.com 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
add comment

2 Answers 2

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

share|improve this answer
add comment

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 http://en.wikipedia.org/wiki/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 http://www.ip-address.org/tracer/ip-whois.php

share|improve this answer
add comment

Your Answer

 
discard

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