LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-24-2005, 09:20 PM   #1
Rage2132
LQ Newbie
 
Registered: Apr 2005
Distribution: Mandrake
Posts: 4

Rep: Reputation: 0
Yet Another N00b Question, want to create my own DNS/Web Server


Good evening all,

I decided that I need to learn the in and outs of linux and thought I'd start out by hosting my own web page and domain name from it. My SC420 comes in tomorrow and will most likely load Mandrake 10 since it appears to be the most n00b friendly with install and configuration.

I have found a couple of threads about building your own web server, but haven't found a complete guide as of yet. Currently I am on a Dynamic IP connection and a simple DHCP router. My website I wish to use for this project is a very basic one and I will not need any advanced databases or functions such as MySQL or PHP.

My main objective is to learn through trial and error and maintain an uptime for at least a week to start. I would like to accomplish the following:

- Create my own DNS to host my domain name
- Apache for HTTP
- FTP accessability for remote access and management of my site
- Accessible outside of my home network

After this I would like to advance into some backend work and MySQL / PHP management, but would first just like my box to host the site.

Any guides, software, links, etc.. are greatly appreciated in this endevour.


Have a wondeful day!

Rage
 
Old 04-25-2005, 01:07 AM   #2
SiLiCoN
Member
 
Registered: Sep 2004
Location: India
Distribution: Solaris 9, FreeBSD 4.10, Slackware, RedHat, Knoppix,
Posts: 84

Rep: Reputation: 15
Hi Rage2132,

Sorry but u cannot run master name server on ur machine coz it does not have a stable ip address. This is because your ip address is getting allocated through a DHCP server that changes from time to time. But you can always configure it to be a caching name server by running the named daemon. Also i m not sure about a forwarding DNS server but i think that is possible. Rest of the things are possible - like setting up a http server, ftp server and things like that. Even your computer can be accessed from anywhere in the world until you are not using a private IP address (which i hope your are not coz u r using a DHCP server). But in that case people have to type in the internet address of your computer and NOT the host name.
Since you are using mandrake, i guess apache will come preinstalled - all u have to do is to configure httpd.conf and start httpd (http daemon). But still i suggest you download the latest version of apache and compile and build it and set it up from scratch. I love it like that coz i feel i have done something really great (just kiddin).

For apache tutorial check:
http://www10.brinkster.com/ssruprai/comphp.asp
But before doing that make suer mysql is installed.
Also check google for tutorials on apache configuration

ftp is enabled by default. It does not run as a daemon now a days. It is run through inetd
check if u can already ftp to your computer - if not enable it ....

Regards,
SiLiCoN
 
Old 04-25-2005, 04:42 AM   #3
otchie1
Registered User
 
Registered: Apr 2004
Posts: 560

Rep: Reputation: 30
Most of what you want to do is covered in shilo's famous 'how i do it all' that is posted over in the slackware forum. Well worth reading.

Your project does sound a little ambitious though...how about just getting sound and video working properly on your machine first and then maybe setting up your own LAN webserver...maybe then proper mail server and finally finish of with php/sql webby?

I might suggest though that by that time you'd appreciate why most people don't do this :-)

it is fun to learn though
 
Old 04-25-2005, 06:27 AM   #4
RanDrake10
Member
 
Registered: Oct 2004
Location: Florida
Distribution: Debian
Posts: 319

Rep: Reputation: 30
You can use ddclient and dyndns for dynamic dns, to let people type in a name to get to your website. I do have a couple fixes if you use a Linksys router for ddclient.
 
Old 04-25-2005, 07:53 AM   #5
Rage2132
LQ Newbie
 
Registered: Apr 2005
Distribution: Mandrake
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by otchie1
Most of what you want to do is covered in shilo's famous 'how i do it all' that is posted over in the slackware forum. Well worth reading.

Your project does sound a little ambitious though...how about just getting sound and video working properly on your machine first and then maybe setting up your own LAN webserver...maybe then proper mail server and finally finish of with php/sql webby?

I might suggest though that by that time you'd appreciate why most people don't do this :-)

it is fun to learn though
Thanks for the link, just *.pdf 'd it for a read when I get off of work.

It probabbly is ambtious, basically I try to set my learning goals a little high for things I need to learn by trial and error. That way I get tons of experience trying to get everything done and erroring out .
 
Old 04-25-2005, 08:02 AM   #6
Rage2132
LQ Newbie
 
Registered: Apr 2005
Distribution: Mandrake
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by SiLiCoN
Hi Rage2132,

Sorry but u cannot run master name server on ur machine coz it does not have a stable ip address. This is because your ip address is getting allocated through a DHCP server that changes from time to time. But you can always configure it to be a caching name server by running the named daemon. Also i m not sure about a forwarding DNS server but i think that is possible. Rest of the things are possible - like setting up a http server, ftp server and things like that. Even your computer can be accessed from anywhere in the world until you are not using a private IP address (which i hope your are not coz u r using a DHCP server). But in that case people have to type in the internet address of your computer and NOT the host name.
Since you are using mandrake, i guess apache will come preinstalled - all u have to do is to configure httpd.conf and start httpd (http daemon). But still i suggest you download the latest version of apache and compile and build it and set it up from scratch. I love it like that coz i feel i have done something really great (just kiddin).

For apache tutorial check:
http://www10.brinkster.com/ssruprai/comphp.asp
But before doing that make suer mysql is installed.
Also check google for tutorials on apache configuration

ftp is enabled by default. It does not run as a daemon now a days. It is run through inetd
check if u can already ftp to your computer - if not enable it ....

Regards,
SiLiCoN
Thanks for the info, tutorial looks right up my alley.

What about if I create a dyndns (http://www.dyndns.org/services/dns/dyndns/) for the DNS since this would automatically update my IP information?

TIA!
 
Old 04-25-2005, 08:04 AM   #7
Rage2132
LQ Newbie
 
Registered: Apr 2005
Distribution: Mandrake
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by RanDrake10
You can use ddclient and dyndns for dynamic dns, to let
people type in a name to get to your website. I do have a couple fixes if you use a Linksys router for ddclient.
Doh! should have read this post before I responded to Silicon.

My router is a wireless freebie from MS, so I don't think it should be a big problem for DYNDNS
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
IP addresses and web-servers: n00b theory question tireseas Linux - Networking 11 03-13-2005 10:04 PM
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 09:18 PM
How to create a DNS Server ? G_Slackw Linux - Networking 4 06-28-2004 10:28 PM
n00b dns/postfix/apache question m61 Linux - Networking 5 11-05-2003 09:02 AM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 03:09 AM


All times are GMT -5. The time now is 09:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration