Runnig Linux Web Server at home, How to ?

kmthien

Senior member
Oct 8, 2002
363
0
0
Hi guys,

I have registered a URL and would like to run my webserver at home. I got a cable modem at home. Sould I get DNS adress from my ISP so that I can put into resolve.conf ? Pls guide me, Thanks !

regards,
kmthien
 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
Your resolv.conf has nothing to do with it, it only tells your server what nameserver(s) to use, and some things such as searchdomain, etc.

When you register the domain, you register two or more nameservers to use for it, if these are at your ISP, they'll have to point www.yourdomain.com to your server's IP address.
I think there are free DNS services for stuff like this, don't know one off the top my head though, but google is your friend :)
 

kmthien

Senior member
Oct 8, 2002
363
0
0
Hi Sunner,

U means that as soon as I got my webpage done (inside /var/www), running apache and set my ip address to the ip given by ISP then everything will be done ?? What do u mean by free DNS by Google ?? Can u guide me step by step, Thanks !

regards,
kmthien

 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
Well, if you have Apache running, and have a site in /var/www(or whereever Apache expects it to reside, you can change that in httpd.conf), the basic Apache configuration is done, you can check to see if it's working by just browsing to your server by it's IP, or if you have a browser on the server itself, just point the browser to "localhost".

But to make a name work(such as www.yourdomain.com), you need a nameserver to point that name to your IP.
Let's say your IP address is 150.160.170.180, if it's available to the internet with no firewalls or anything blocking access, anyone should be able to connect by just typing that address into their browser.
But for the name to work, a nameserver needs to point the name to that address.
Names are really just a way to make it easier for people, so people won't have to remember IP addresses of everything.

When you registered your domain, you had to point out two or more nameservers to handle it, right?

Let's say ns1.dns.com is the primary nameserver for yourdomain.com for example.
When someone tries to access www.yourdomain.com, their browser will tro to resolve that name, and in the end, a question will be sent to ns1.dns.com about which IP address www.yourdomain.com has, and if your nameserver is setup correctly, it will reply that the address is 150.160.170.180, and theyir browser will go there.
Of course this is very simplified.

But to make a way too long story short, you need to have a nameserver that handles your domain name, that nameserver will tell others that mail for your domain shuold go to mail.yourdomain.com(for example), and that requests for www.yourdomain.com should go to 150.160.170.180, etc etc.

If you're gonna run your own domain, it might be a good idea to read up on the basics of DNS, it's not really that tricky unless you feel like digging deep, but that shouldn't be needed.

BTW what's your domain?

Oh and I know my explaining skills suck, sorry, it's simply not one of my strong points :)

Here, I found a site that explains how it works in a rather easy to read fashion.
 

kmthien

Senior member
Oct 8, 2002
363
0
0
Hi,

So I have to tell my DNS provider my IP address ? So if my IP address change in future how ?

kmthien
 

Bleep

Diamond Member
Oct 9, 1999
3,972
0
0
You need to do some research on this.
Go Here For complete instructions.
Apache is really easy to configure just build your web page and dump it into htdocs,

Bleep