LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-09-2007, 08:11 PM   #1
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Rep: Reputation: 15
DNS and hosting website..


I currrently have my domain name registered with GoDaddy. Their DNS servers handle the records for the domain and I would like to be able to host my website and others on my servers.

I'm having some issues understanding the role of DNS and what is needed on my server to make this happen. Since my server shouldn't have the SOA record how do I deal with and set up my DNS?

My current setup is DSL service with a static IP to a 4 port router.

Thanks,
 
Old 04-09-2007, 10:57 PM   #2
igorc
Member
 
Registered: May 2005
Location: Sydney, Australia
Distribution: Ubuntu 5.04, Debian 3.1
Posts: 74

Rep: Reputation: 15
Hi,

DNS is domain name service which means that whoever types in his/her browser http://yourdomain.com or whatever your domain is registered to, it will resolve with your WAN router ip address being sent to the client. Since you have a static WAN ip all you have to do is forward the port 80 on the router to the web server you would like to host the sites on. Please note that you can forward a port to only one local address. If you want to run a web server on more than one box you have to configure those servers to listen on different port e.g. 8008 and forward that port on the router to that specific box. In that case those sites will be reachable through http://yourdomain.com:8008 address.

Cheers,
 
Old 04-10-2007, 04:16 AM   #3
jusupov
LQ Newbie
 
Registered: Apr 2007
Distribution: ubuntu
Posts: 4

Rep: Reputation: 0
In GoDaddy, point the nameservers to use your static IP. Then in your ADSL router/Firewall you specify port forwarding to port 80 - or the port you want to be seen from outside to the server's internal IP.

Basically speaking here's how it works:

INTERNET <<--> www.yoursite.com <<-->> 60.22.222.222 <<--->> ADSL Router <<--> Firewall <<-->> Server
 
Old 04-10-2007, 08:02 AM   #4
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
I think I'm there on the godaddy setup and all should be good to go on that end. So, here's my dilemma and setup...

INTERNET <<--> www.yoursite.com <<-->> 60.22.222.222 <<--->> ADSL Router <<--->> Linksys Router(192.168.2.1, Server on this subnet) <<--->> Linksys Router (192.168.1.1 pulled from Linksys Router, Desktop's on this subnet)

In case the above schema didn't come out or make any sense... My ADSL router feeds into a Linksys Router(192.168.2.1), the server is on the same subnet (192.168.2.0), I have another Linksys Router that gets it's IP from the first Linksys Router (Double Natting I guess) and then my desktops are on that subnet (192.168.1.0).

Since I want to be able to access my server from both a public IP and a local IP it has 2 NIC's for the subnets 192.168.2.0 and 192.168.1.0. I think this can be setup much simpler with Linux but it was needed for Winblows, I'm not sure I should use 2 NIC's or just create a second IP for a single card?

Hopefully this gibberish makes some sense and hopefully you guy's can give me some suggestions,hints and insight on how to set this up.


TW,
 
Old 04-10-2007, 10:14 AM   #5
barrythai
Member
 
Registered: Dec 2004
Location: thailand
Distribution: suse9.3, Mandrake10.1
Posts: 381

Rep: Reputation: 30
Quote:
Originally Posted by tiger.woods
I currrently have my domain name registered with GoDaddy. Their DNS servers handle the records for the domain and I would like to be able to host my website and others on my servers.

I'm having some issues understanding the role of DNS and what is needed on my server to make this happen. Since my server shouldn't have the SOA record how do I deal with and set up my DNS?

My current setup is DSL service with a static IP to a 4 port router.

Thanks,
You need to have your domain name pointed at your ip address. There are many free dns providers who will do it for free and your ip provider may well do this service for you free as well.

 
Old 04-10-2007, 03:32 PM   #6
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Hi, thanks for the post barrythai.

Do you have any other suggestions or hints for setting up apache and the dns on the server?

TW,
 
Old 04-11-2007, 06:25 AM   #7
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Quote:
Since I want to be able to access my server from both a public IP and a local IP it has 2 NIC's for the subnets 192.168.2.0 and 192.168.1.0. I think this can be setup much simpler with Linux but it was needed for Winblows, I'm not sure I should use 2 NIC's or just create a second IP for a single card?
Well it seems the 2 NIC's are the problem creators... once I disabled the card that I deemed as local (192.168.1.100) I was able to get to the server.

So, 3 questions still loom for me.
1) What is the correct way to install multiple NIC's for different subnets in a single Linux machine?
2) If you create a virtual IP on a Linux Machine, in order for a single card to respond to multiple IP's, I'm assuming it can only listen on the subnet in which the actual IP is established?
TW,
 
  


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
Hosting a website Russ S. Linux - Newbie 11 09-01-2006 12:30 PM
hosting a website jitheshmurali Linux - Networking 2 04-24-2006 01:50 PM
hosting my own website metallica1973 Linux - Networking 4 10-16-2005 02:49 PM
website hosting jkmartha Linux - Newbie 1 05-06-2005 04:01 AM
multiple website hosting matneyc Linux - Newbie 4 12-20-2004 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:09 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