View Full Version : How to map IP address to a host/domain name?
Debian2009
25th April 2009, 05:55
I am new to Linux!!
I've set up an apache server for internal LAN user (the LAN is connected to the internet but this server is not open to the internet) and do not know how to map the IP address to a domain name.
I setup the system following "The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 2]"
the name of my system is: main.debian.org
I fire up the browser and type in the IP, the web page shows up without problem. :D
But when I type in 'http://main.debian.org/index.htm', no web page shows up.:(
tebokkel
25th April 2009, 10:08
Sounds like you like to learn an awfull lot about DNS and virtual hosts.. :D
Start by reading
http://en.wikipedia.org/wiki/Virtual_hosting
If you have more questions, please do come back and ask more..
Short term fix for your problem: add the ip-address for main.debian.org in the hosts file on you client (/etc/hosts or \windows\system32\drivers\etc\hosts). Restart browser. But as you're using an official domain (debian.org) I wouldn't recommend you leave it there.
Paul
bernholdt
26th April 2009, 00:52
You should probably assign the name in your router somewere
Debian2009
27th April 2009, 08:55
Thank you Paul
As a matter of fact, I did not use debian.org as my domain.
Setting the host file in every client is a bit to much to do.
If the domain name of my server is main.xxx.org and I've installed bind9, is there any faster way to fix my problem (Mapping the IP to the domain name of my Linux system)??:confused:
rdv25772
27th April 2009, 12:20
Setting the host file in every client is a bit to much to do.
If the domain name of my server is main.xxx.org and I've installed bind9, is there any faster way to fix my problem (Mapping the IP to the domain name of my Linux system)??:confused:
I think you can assign the name in your router as bernholdt said, or you can add your server as an extra nameserver for your clients. You are running Bind9 as well, so take that advantage. The other solution is adding it to the hosts file as Paul stated. You will need to do something on your clients. :D
As you might know, a domain name is always translated to an IP address by the DNS system. It is easier to remember a domain name than remember a serie of numbers like 192.168.0.1 or so.
Good luck.
ernestmanning922
7th May 2009, 17:03
Please check below link. I think its help you.
copyrunstart.net/?p=21
:)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.