Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th April 2009, 05:55
Debian2009 Debian2009 is offline
Junior Member
 
Join Date: Apr 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to map IP address to a host/domain name?

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.
But when I type in 'http://main.debian.org/index.htm', no web page shows up.
Reply With Quote
Sponsored Links
  #2  
Old 25th April 2009, 10:08
tebokkel tebokkel is offline
Member
 
Join Date: Feb 2007
Location: The Netherlands
Posts: 96
Thanks: 0
Thanked 9 Times in 9 Posts
Default

Sounds like you like to learn an awfull lot about DNS and virtual hosts..

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
Reply With Quote
  #3  
Old 26th April 2009, 00:52
bernholdt bernholdt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 154
Thanks: 45
Thanked 13 Times in 11 Posts
Default

You should probably assign the name in your router somewere
__________________
www.gamebook.me
Reply With Quote
  #4  
Old 27th April 2009, 08:55
Debian2009 Debian2009 is offline
Junior Member
 
Join Date: Apr 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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)??
Reply With Quote
  #5  
Old 27th April 2009, 12:20
rdv25772 rdv25772 is offline
Junior Member
 
Join Date: Apr 2009
Location: Deventer, The Netherlands
Posts: 26
Thanks: 2
Thanked 6 Times in 5 Posts
Default Use your server as a nameserver

Quote:
Originally Posted by Debian2009 View Post
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)??
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.

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.
__________________
Greetings,

Richard
RdV25772
Reply With Quote
  #6  
Old 7th May 2009, 17:03
ernestmanning922 ernestmanning922 is offline
Junior Member
 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Please check below link. I think its help you.

copyrunstart.net/?p=21

__________________
Ernest
Web Server Monitoring
Reply With Quote
Reply

Bookmarks

Tags
apache2, map ip

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix not responding to telnet CarbonCopy Server Operation 6 8th May 2009 05:39
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Cannot Map IP Address to Domain Name shoutkeeper Server Operation 1 30th November 2008 07:50


All times are GMT +2. The time now is 18:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.