LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2008, 06:16 PM   #1
niner710
Member
 
Registered: Apr 2008
Posts: 37

Rep: Reputation: 15
How to I map domain name to my linux server??


I have a linux server that I set up to do a specific task. It's running and working. Now, I am unsure of how to bind the domain name to my IP address. I am using Fedora 8. Can anyone tell me how I would do this or point me in the right direction??
 
Old 05-16-2008, 06:41 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Do you mean for external lookups like www.google.com? You need a nameserver.

Have a look at www.zoneedit.com as - there are others that offer a free name service as well, but I know this one because I use it. Never had any problems. I'm sure the others are good too.
 
Old 05-17-2008, 01:01 AM   #3
niner710
Member
 
Registered: Apr 2008
Posts: 37

Original Poster
Rep: Reputation: 15
So what I mean is lets say that I have a registered domain name(www.blah.com). How do I map that domain name(www.blah.com) to my computer at home? I changed the /etc/httpd/conf/httpd.conf file so that it reads ServerName www.blah.com:80. I'm assuming I will need to do some other things as well. Just wondering if someone can point me in the right direction. Thanks!

Last edited by niner710; 05-17-2008 at 01:17 AM.
 
Old 05-17-2008, 05:05 AM   #4
Yariv
LQ Newbie
 
Registered: May 2008
Posts: 4

Rep: Reputation: 0
Well, lets start off with something simple.
billymayday was right, you do need an external NS servers.
I also suggest ZoneEdit, It might be a bit aggressive towards new users but can be mastered in minutes actually.

Go to your registar (where you bought the domain) and after setting up your domain on ZoneEdit.com enter in the register domain info the nameservers that ZoneEdit has allocated for you.

After you have completed this step I recommend you go back to ZoneEdit and check what is your IP, and in there (ZoneEdit that is), look for the name servers, enter your IP as the NS servers and wait, it might take 24-48 hours to update at first, but once the NS appear to forward to ZoneEdit.com nameservers, each change you will make there will be instant.

Meaning: If you change your IP because you disconnected, and you go to ZoneEdit and change to your new IP there, the change will become LIVE instantly.

I hope it helped, feel free to ask any thing else if you need more help
 
Old 05-17-2008, 11:36 AM   #5
niner710
Member
 
Registered: Apr 2008
Posts: 37

Original Poster
Rep: Reputation: 15
Ok thanks for the feedback guys. So after I change the nameservers, how would I configure my linux box to point to the correct domain?
 
Old 05-17-2008, 11:40 AM   #6
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
First action: check that you can ping your box by domain name. Actually, unless you do want something complicated with virtual hosts, that should be enough.. Your web server can completely lack any information about domain it is running on, and still serve pages (check that it does that when you put IP in the browser address bar). ServerName allows it to give saner error messages in some situations, but even that is optional. Usage of VirtualHosts etc is well described in Apache manual on httpd.apache.org , but you should only do that after your server works via both IP and domain name.
 
Old 05-17-2008, 12:53 PM   #7
niner710
Member
 
Registered: Apr 2008
Posts: 37

Original Poster
Rep: Reputation: 15
O I forgot to mention that I bought a domain name(www.blah.com) on yahoo and they provided me with DNS nameservers. So I am assuming that I don't need Zoneedit. I have a static IP address from my ISP and would like my domain name to link to my static IP. So when I click on www.blah.com I want it to point to my /var/www/html/index.html page on my home fedora 8 server. Just unsure how to do this?
 
Old 05-17-2008, 04:44 PM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
No, you won't need another nameserver if yahoo are doing it for you.

What you need to do is to set up a web server such as apache. Here's a howto to get you started

http://www.linuxhomenetworking.com/w...che_Web_Server

F8 comes with apache, so it's either there, or you can install it easily with

yum install httpd

or use the package manager

Let us know how you go
 
Old 05-19-2008, 02:32 AM   #9
niner710
Member
 
Registered: Apr 2008
Posts: 37

Original Poster
Rep: Reputation: 15
Ok, so I got my server running for a little bit. I had to forward port 80 on my router to my server's private IP address. Since I bought the domain name on yahoo, I had to go into my account and do a mask forward of my domain to my IP address. I then changed my httpd.conf by adding..

ServerName www.blah.com:80

Also for the Virtual Host part...
NameVirtualHost 192.168.1.21
NameVirtualHost 23.33.32.89
<VirtualHost 192.168.1.21 76.23.23.1>
DocumentRoot /var/www/html
<VirtualHost>

Where 192.168.1.21 is my private ip address behind my router, and 76.23.23.1 is my public ip address. So it was working for me and then I forgot that I have a dynamic IP address. It seems like what I did earlier won't work now since I don't have a static IP address. I was looking at billymayday's link that he added on his post and it gave an example using dyndns. So if I were to use dyndns do I have to configure the VirtualHosting part on the httpd.conf file or do I just comment it out? Also, when I configure my yahoo account, since I have a dynamic IP address what would I configure on there to have them forward traffic from domain to my IP address at home. Lil confused so any help would be greatly appreciated .

Last edited by niner710; 05-19-2008 at 02:46 AM.
 
Old 05-19-2008, 02:58 AM   #10
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
You can safely comment out VirtualHost part.

As for dynamic IP, I would go to dyndns/freedns.afraid.org/no-ip.com and register some randomly generated (ecology reasons: nobody will see it, so leave better names to those who have better use for them; and your intermediate domain name will be unguessable, which is sometimes good) domain name and setup dynamic IP autoupdate. Then I would make Yahoo! control panel make your own domain have only CNAME record to the autoupdated domain.

Disclaimer: it may be so that Yahoo! has dynamic IP autoupdate feature and even sane documentation for it, so check that first.
 
Old 05-19-2008, 07:48 PM   #11
niner710
Member
 
Registered: Apr 2008
Posts: 37

Original Poster
Rep: Reputation: 15
Ok, I signed up for Dyndns.org and received a user/password and set up a domain name blah.homelinux.com. Now I've been reading that I have to edit my Linux /etc/ddclient.conf file. This is what I changed in my ddclient.conf file. Can anyone tell me if this is right?

daemon=600
cache=/tmp/ddclient.cache
pid=/var/run/ddclient.pid
use=web, web=checkip.dyndns.com/, web-skip='IP Address'
login=your-username
password=your-password
protocol=dyndns2
server=members.dyndns.org
wildcard=YES
niner710.hostlinux.com
custom=yes, www.blah.com

blah.hostlinux.com -> my domain that created on dyndns.
www.blah.com -> my website that i got thru yahoo.

I then did a service ddclient start. Changed the CNAME record on yahoo to niner710.hostlinux.com.

First of all, is what I'm doing right and is this all I would have to do or is there anything else as well? Thanks!

Last edited by niner710; 05-20-2008 at 12:29 AM.
 
Old 05-20-2008, 12:50 PM   #12
niner710
Member
 
Registered: Apr 2008
Posts: 37

Original Poster
Rep: Reputation: 15
Ok, it looks like everything worked. I did a mask forward on my yahoo domain control center to my dyndns.org hostname(niner710.hostlinux.com) and then changed the CNAME record to niner710.hostlinux.com).

Seems like I configured the ddclient.conf file correctly, which I posted in my previous post.

Anyways, appreciate the help from everyone. Thanks!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo Linux - how to map Apache server to look at php files in multiple locations bg108 Linux - Newbie 3 02-07-2008 04:51 AM
how to map linux share on windows domain controller prakash.j Linux - Newbie 1 01-25-2008 03:52 PM
Running what on Server to map domain to IP ? anjanesh Linux - General 4 07-11-2006 05:43 AM
Possible for Linux to be NT domain server? dave_helmut Linux - General 3 04-17-2003 03:54 PM
How do I map registered domain to my cable modem static ip address munisp Linux - Networking 2 11-20-2001 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration