You are not logged in.

#1 2004-08-09 02:08:46

ruwach
Member
Registered: 2004-06-14
Posts: 143

please help me with some info on servering !

ok, here is what i want to do. i desire to purchase a domain name and then use a place like zoneedit.com to provide the dns routing for me. i am on a cable modem connection and what i guess i need to know is ... what software do i need, what numbers do i need to know and from where to set this thing up as a simple web page server on my arch linux box. Should i use apache? it seems pretty popular and there seems to be a good wiki, or should i go with something simpler. is there a how-to somewhere to get me going?

thanks for any help at all.
i am not really newbie to linux ( two year vet ) but this web server stuff is brand new to me. i just need to have a few simple web pages on the net, and i want to host it myself.

thanks

Offline

#2 2004-08-09 03:07:43

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: please help me with some info on servering !

Basically, if you set up Apache properly and put httpd in your DAEMONS array, you have a web server. The web pages go in /home/httpd/html, or ~/public_html.

You can access them on your comp from http://localhost/.  If you have a domain that properly points to your IP, then you can access it from http://yourdomain.com.

Apache does all the listening on ports and stuff when it's started. It listens on port 80 by default, and lo and behold, web browsers connect to port 80, so it all works out. The trick is to get it set up properly, but luckily, there's a wiki document that will describe that. smile

Have fun.

Dusty

Offline

#3 2004-08-09 04:27:00

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: please help me with some info on servering !

Sounds too easy to be true, do i still need to mess with a dns server like zoneedit.com or something to that effect? i have a cable modem and think that means i have a dynamic ip address. But if this is as easy as all of this, i can be hooked up in no time.
thanks for your quick response.
i am not sure i know the significance of port 80 yet. is this my dns thing? still some questions but this is starting to take some shape mentally.

Offline

#4 2004-08-09 05:04:06

famavolat
Member
From: Louisville, KY
Registered: 2003-09-22
Posts: 80
Website

Re: please help me with some info on servering !

With a cable modem / dhcp you probably wanna go with some dynamic dns service like http://www.no-ip.com/. That way when your ip changes it will update where your domain points.

Offline

#5 2004-08-09 08:16:02

neocephas
Member
From: orange, ca
Registered: 2004-02-14
Posts: 30

Re: please help me with some info on servering !

I did pretty much the same thing u are planning to do.  I bought a domain and then used http://www.everydns.net/ to make DNS entry and pointed my domain to their dns servers. Basically from whomever u buy the domain from, u will have to put that ur dns servers are the everydns.net ones (if u plan on using them).  Then, using everydns, u make an entry for ur domain that points to ur IP address.

Since I am on a cable modem, I have this simple perl script called eDNS.pl (downloaded it from somewhere) that updates my ip address every 10 minutes.  Everything works fine, and I am using arch + drscheme for the web server smile

Oh yeah, port 80 is the default http port... different protocols have different default ports... like ftp is 21 I think and ssh is 22.  By default, http is 80, but really u can make it any number (but people trying to access ur web server will have to know ur port number).

Offline

#6 2004-08-09 12:18:51

wdemoss
Member
From: WV - USA
Registered: 2004-01-18
Posts: 222

Re: please help me with some info on servering !

famavolat wrote:

With a cable modem / dhcp you probably wanna go with some dynamic dns service like http://www.no-ip.com/. That way when your ip changes it will update where your domain points.

Another option is www.dyndns.org


Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?

Offline

#7 2004-08-09 16:56:22

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: please help me with some info on servering !

ruwach wrote:

i am not sure i know the significance of port 80 yet. is this my dns thing?

The quick tutorial:

Every computer on a network has an IP address (sometimes more than one, but that's not going to be an issue right now). This looks like ###.###.###.###, usually.  If you type http://###.###.###.###/ in a browser, and the computer with that IP address has a web server running, it will display the page from that web server.

Now, each server also has an address. The web browser address is usually 80, so that all the web browsers know where to connect. This is like having an apartment. Your computer is the apartment building at they xyz block of nth avenue.  Port 80 is like a single appartment number where if you knock on the door they will give you a web page.

There is nothing special about ports; you can use any number besides 80 (between 1 and 65535).  But web browsers won't know how to connect to that port by default, you'd have to type http://###.###.###.###:portno/ in your web browser now, to indicate a nondefault port.  As long as your ISP allows you to use port 80, you're better to stick with it. Especially since that's what apache uses by default, so there's less configuring. smile

Now, about domains. If you had a static IP, you could simply register mydomain.com with ###.###.###.### and it would pretty well magically allow http://mydomain.com to be the same as http://###.###.###.###/ However, since you probably have a dynamic IP (static IPs cost more, that's all), you can't just associate your domain with any single IP. This is where the dynamic IP services come in. Frankly, I don't know exactly how they work, but basically, your computer has to connect to the service to tell it what the new IP is every time it changes (They only change when you reconect or reboot, AFAIK). Further, you have to register mydomain.com to point to the dynamic service instead of the actual IP, since you don't have any 1 actual IP.

The dynamic service receives requests on your behalf, and since your computer has told it what your current IP is, it forwards the request to your computer.

Dusty

Offline

#8 2004-08-10 00:53:12

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: please help me with some info on servering !

ok then, how do i know if i have a static or dynamic ip? i do know that i use dchp to connect because i had to enable it in my Arch install.
Thanks for all of the education, i think that i am going to be able to give this thing a shot pretty soon.

thanks again

Offline

#9 2004-08-10 00:56:10

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: please help me with some info on servering !

ruwach wrote:

ok then, how do i know if i have a static or dynamic ip? i do know that i use dchp to connect because i had to enable it in my Arch install.

That's how you know. smile If you use dhcp, basically your server assigns you a new IP address every time you connect/boot (ie: dynamic). DHCP is the program/protocol that does all this type of thing.  IF you had a static IP, you would set it up in /etc/hosts, I think.

Dusty

Offline

#10 2004-08-10 01:26:43

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: please help me with some info on servering !

ok then, so what do i need to know before using a dns server online. Dont they want to know my ip address? how do i get them to connect with my ever changing address? do i need a piece of software for that or is it covered in apache?

thanks

Offline

#11 2004-08-10 16:06:32

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: please help me with some info on servering !

That's what those links some people were providing will tell you. I've never done anything like this (run a server over dialup, no way!), so I have no first hand experience.

What I understand is you set up with a service such as dyndns. They'll probably even register a domain for you. They'll likely give you some sort of software to download that will do the IP updates for you. They'll tell you how to register DNS to look at their server instead of yours, then they'll tell you how to set up their server to forward to your IP even when the IP changes.

Dusty

Offline

#12 2004-08-11 16:16:48

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: please help me with some info on servering !

neocephas,

   hey, i was wondering if you could post your script and let me know how to set it up. i dont know how to configure my software (apache, Arch) to talk to everydns to update my ip address.

thanks

Offline

#13 2004-08-11 22:43:31

neocephas
Member
From: orange, ca
Registered: 2004-02-14
Posts: 30

Re: please help me with some info on servering !

Well, if you want to use everydns.net, make sure you get an account.  Add your dynamic domain (with the domain name you bought), and add two records.  The first record is your domain name, record type A, record value your ip address.  Your second record is www.yourdomain, and everything else the same.  These records tell the dns server to redirect calls to yourdomain and www.yourdomain to the specified ip address. 

The perl script I use (eDNS.pl) can be downloaded here http://www.everydns.net/eDNS.pl

You'll have to download it and place it somewhere in ur path.  After I su into root, I just put mine in /usr/bin/.  Make sure u make it executable by doing chmod 755 /usr/bin/eDNS.pl. 

To have it run every hour, I have a cron job.  To edit your crontab (a list of events to run every x amount of time) do crontab -e and enter in something like:

01 * * * * /usr/bin/eDNS.pl -u YOURUSERNAME -p YOURPASSWORD

Use the username and password you got from everydns.net.  This script will update ur ip address with the DNS server.  That's all you need to do to have your domain point to your computer. 

If your ip address changes a lot (which mine doesn't) you can up the rate at which you update ur ip address, although anything faster than every 10 minutes is probably a waste.

As for apache, I don't personally use it, but you can follow the wiki on how to set it up or ask others to help you out.  I just use the drscheme webserver and have been playing around the the chicken scheme one too.

good luck...

Offline

#14 2004-08-11 23:23:44

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: please help me with some info on servering !

man, thanks so much. I will let you know how it goes.
thanks for such a quick and helpfull reply

Offline

#15 2004-08-12 00:49:57

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: please help me with some info on servering !

hey there,

ok, i think i got almost everything ready. but i had trouble with this line.

01 * * * * /usr/bin/eDNS.pl -u YOURUSERNAME -p YOURPASSWORD

it replied user 01 unknown

any suggestions ?

thanks

Offline

#16 2004-08-12 02:45:57

neocephas
Member
From: orange, ca
Registered: 2004-02-14
Posts: 30

Re: please help me with some info on servering !

you do "crontrab -e" as a seperate command, not "crontab -e 01 * * * * /usr/bin/eDNS.pl -u YOURUSERNAME -p YOURPASSWORD ". 

This will open your crontab file with your editor of choice (probably vi).  Next you need to enter in

01 * * * * /usr/bin/eDNS.pl -u YOURUSERNAME -p YOURPASSWORD

Save the file and that's it.

Offline

#17 2004-08-13 04:51:42

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: please help me with some info on servering !

Thank you, thank you.

did it again, the right way.

its all working now.

all my gratitude

Offline

#18 2004-08-13 15:11:40

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: please help me with some info on servering !

ok, sorry, i have another question.

when i go into a browser and enter mydomain.org it cannot find my domain. It sends me to a default easydns page but if i enter www.mydomain.org it works just fine.

did i enter a record wrong there?

thanks

Offline

#19 2004-08-14 07:49:07

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: please help me with some info on servering !

you need an A record pointing the yourdomain.com to the box.
then most people add www.yourdomian.com as a CNAME


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#20 2004-08-14 15:01:28

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: please help me with some info on servering !

ok i entered mydomain.org as a CNAME and it when i clicked on "add record" it took me to a page that said that my record was for the wrong domain.

it seems that i can only enter www.mydomain.org and add it as an A record and it doesnt want a CNAME or another A record.

oh, well. If you have an idea about what i may be doing wrong, please let me know. At least i have gotten to a point that i can see the page on line by www.mydomain.org. and thats pretty cool.

ok, thanks

Offline

#21 2004-08-14 21:44:26

neocephas
Member
From: orange, ca
Registered: 2004-02-14
Posts: 30

Re: please help me with some info on servering !

I have both mydomain.org and www.mydomain.org as an A record and it works fine. I dunno if that helps.

Offline

#22 2004-08-14 22:27:07

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: please help me with some info on servering !

ruwach wrote:

ok i entered mydomain.org as a CNAME and it when i clicked on "add record" it took me to a page that said that my record was for the wrong domain.

it seems that i can only enter www.mydomain.org and add it as an A record and it doesnt want a CNAME or another A record.

oh, well. If you have an idea about what i may be doing wrong, please let me know. At least i have gotten to a point that i can see the page on line by www.mydomain.org. and thats pretty cool.

ok, thanks

I would think it would have to be the opposite.
An A record for mydomain.com
and a CNAME for www.mydomain.com
or, like neocephas said, you could try just making them both an A record..


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#23 2004-08-14 23:33:50

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: please help me with some info on servering !

ok, i deleted all my records and tried about every way possible. it will always allow me to enter www.mydomain.org but never just mydomain.org

perhaps it could be something wrong i did when i purchased the domain?
i got the domain from godaddy.com

ok , thanks for all the help so far.

Offline

#24 2004-08-16 00:12:21

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: please help me with some info on servering !

this is how it should look..or something close to it..
http://rimuhosting.com/support/bindviawebmin.jsp

someone else told me that it should look like this...
@      IN A 111.111.111.111
www  IN A 111.111.111.111


with the @ sign meaning the domain itself...
I am asking someone else, who is a dns guru, so hopefully something useful will flow my way soon enough..


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#25 2004-08-17 03:27:15

ruwach
Member
Registered: 2004-06-14
Posts: 143

Re: please help me with some info on servering !

thanks, stilll working on it. i sent off an email to everydns tech support, and got an automated reply that they will get back in touch asap javascript:emoticon(':rolleyes:')

the link you posted is a little over my head, how do i see my zone info?

ok, thanks for all your help so far.

cheers

Offline

Board footer

Powered by FluxBB