Networking Forums

Networking Forums > Computer Networking > Linux Networking > ? Own DNS server

Reply
Thread Tools Display Modes

? Own DNS server

 
 
Timothy Law
Guest
Posts: n/a

 
      06-05-2004, 08:15 PM
Hi, I am hoping to set up my own DNS Server for the following reason:

P.S. please tell me if I have misunderstood anything.

I'm on Cable speed connection. So I got one almost static IP.
If I use that IP for DNS server, ie. dns1.myip.com,
I can create many of my own domains, right?

For usage of web hosting,
for example, my dns1.myip.com DNS server will have a mapping of:
www.timmy1.com maps to /usr/httpd/tim1/
www.timmy2.com maps to /usr/httpd/tim2/
and so on...

So I don't have to pay for dns hosting for timmy1 and timmy2 for webservers.
I could use my own dns server hosting. Is this about right?

So far I only see mapping of domain names to ip's. Not directories. So I can
do it with directories on the same machine? Or do I really have to have a
LAN of machines. Because it's still logically conceivable.

So this is my understanding of it graphically,

Root DNS -------------> dns1.myip.com (my computer)

and so if I registered for domain name timmy1.com for $7/year. I can have
it's dns as my dns1.myip.com,

verisign ----> timmy1.com --- >
dns1myip.com --->/usr/httpd/timmy1/index.html
----->timmy2.com --- >
dns1myip.com --->/usr/httpd/timmy2/index.html
-----> myip.com ----->
dns1myip.com --->/usr/httpd/timmy3/index.html
and so on...

Is this kind of virtual mapping possible? or what correction I need to make?

Thank you.

Cheers,
Tim




 
Reply With Quote
 
 
 
 
Markku Kolkka
Guest
Posts: n/a

 
      06-05-2004, 09:08 PM
Timothy Law wrote:
> So far I only see mapping of domain names to ip's. Not directories. So
> I can do it with directories on the same machine?


Yes, but that has nothing to do with DNS, it's done using the virtual
hosting capability of your web server program. DNS points all domain
names to the same IP of the server machine.

--
Markku Kolkka
(E-Mail Removed)
 
Reply With Quote
 
Jeff Breitner
Guest
Posts: n/a

 
      06-06-2004, 12:11 AM
Timothy Law wrote:

> I'm on Cable speed connection. So I got one almost static IP.
> If I use that IP for DNS server, ie. dns1.myip.com,
> I can create many of my own domains, right?


It needs to be completely static. Not that you can't change things, but
updating host records showing a new DNS IP address can take 24 hours or
more. It all has to be inserted into the root servers.

You'd be better off using a dynamic IP DNS service. There are some free
ones out there.


>
> For usage of web hosting,
> for example, my dns1.myip.com DNS server will have a mapping of:
> www.timmy1.com maps to /usr/httpd/tim1/
> www.timmy2.com maps to /usr/httpd/tim2/
> and so on...
>
> So I don't have to pay for dns hosting for timmy1 and timmy2 for webservers.
> I could use my own dns server hosting. Is this about right?


Yes, as long as you don't mind the occasional blip in service when your
mostly static IP address gets mostly renewed to something else.


>
> So far I only see mapping of domain names to ip's. Not directories. So I can
> do it with directories on the same machine? Or do I really have to have a
> LAN of machines. Because it's still logically conceivable.


It's very conceivable because it's how most web hosting companies do
shared hosting. But it's not a function of DNS, it's a function of the
web server. It's known as name-based hosting, and your web server knows
what domain is being asked for because the web browser tells it in the
headers of the request (Host: www.timmy1.com).

So really, all your web sites will have the same IP address as long as
you configure your web server to use name-based hosting.






--

WWJD? JWRTFM
Rot13 for email address: yvfgf @ ehqa.pbz
 
Reply With Quote
 
Timothy Law
Guest
Posts: n/a

 
      06-06-2004, 03:08 AM
Sweet...thanks guys

Thanks Markku

I think I need to look up virtual hosting of the web server.
So far, I only know about subdomain virtual hosting...ie. a1.domain.com,
a2.domain.com...

But for domain virtual hosting...ie. domain1.com, domain2.com, that's a
whole new level right? or not..perhaps just a matter of $$$ since domain
names are $$$ while subdomains are $0 since their price is already credited
to their main domains.
Am I right in understanding this?

Thanks again.

Tim


 
Reply With Quote
 
George
Guest
Posts: n/a

 
      06-06-2004, 02:17 PM
On Sat, 05 Jun 2004 20:15:45 GMT, "Timothy Law" <(E-Mail Removed)>
wrote:

>I'm on Cable speed connection.


Unrelated to DNS -- Your cable company may not pass incoming
connections to port 80 (web server) or port 25 (mail server). Mine
doesn't, unless you get a business account.

You can check it first. Just set up your web server with no DNS, then
go to the outside world and surf to your server by IP address.

 
Reply With Quote
 
Michael W. Cocke
Guest
Posts: n/a

 
      06-06-2004, 02:38 PM
On Sat, 05 Jun 2004 20:15:45 GMT, "Timothy Law" <(E-Mail Removed)>
wrote:

>Hi, I am hoping to set up my own DNS Server for the following reason:
>
>P.S. please tell me if I have misunderstood anything.
>
>I'm on Cable speed connection. So I got one almost static IP.
>If I use that IP for DNS server, ie. dns1.myip.com,
>I can create many of my own domains, right?


Not a chance.

>For usage of web hosting,
>for example, my dns1.myip.com DNS server will have a mapping of:
>www.timmy1.com maps to /usr/httpd/tim1/
>www.timmy2.com maps to /usr/httpd/tim2/
>and so on...
>
>So I don't have to pay for dns hosting for timmy1 and timmy2 for webservers.
>I could use my own dns server hosting. Is this about right?


Wait till your cable ISP catches you... This should be funny!
go read your terms & conditions again (usually referred to as T&Cs).


Mike-

--
If you're not confused, you're not trying hard enough.
--
Please note - Due to the intense volume of spam, we have installed site-wide spam filters at catherders.com. If
email from you bounces, try non-HTML, non-encoded, non-attachments,


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
 
Reply With Quote
 
Ohmster
Guest
Posts: n/a

 
      06-06-2004, 04:08 PM
"Timothy Law" <(E-Mail Removed)> wrote in
news:7Vvwc.14971$(E-Mail Removed) link.net:

> Sweet...thanks guys
>
> Thanks Markku
>
> I think I need to look up virtual hosting of the web server.
> So far, I only know about subdomain virtual hosting...ie. a1.domain.com,
> a2.domain.com...
>
> But for domain virtual hosting...ie. domain1.com, domain2.com, that's a
> whole new level right? or not..perhaps just a matter of $$$ since domain
> names are $$$ while subdomains are $0 since their price is already credited
> to their main domains.
> Am I right in understanding this?
>
> Thanks again.
>
> Tim
>
>


Uhmm, I just went through all of this with a post a little further down about
virtual domains. You have a few separate questions to answer. So far as
hosting the virtual domains, apache does that and comes with a manual and
some nice examples that you can view with your browser when you get your web
server up and running. It is in the "manual" directory right in your www
root. See section "vhosts".

So far as domains and subdomains, domains cost money but they are not
expensive they used to be. Get your domain for $13.50 a year from
http://www.000domains.com. If you do not want to spend any money at all for a
domain, then you can get a free one at http://www.no-
ip.com/services.php/page/free. You get a subdomain for free on their domain
like timmy.no-ip.com or something similar to that and can get similar
subdomains free. They will provide the DNS to point the URL to your IP
address. no-ip.com also has a free updater that you run on your machine and
this updater tells the DNS server your IP address constantly. If you have a
dynamic IP address that changes, the updater will tell the DNS server your
new IP address for you so that the URL will resolve to your actual, current
IP address. Other DNS servers on the web have similar free updaters. If you
have a static IP address, this is not necessary. When I had a dynamic IP
address, I had problems with this after switching over to PPPoE (This all
worked very well with a bridged ethernet DSL connection.) because you have to
figure out how to automatically restart your firewall so that it updates to
your current IP address as well. I had to restart my linux machine every time
this happened and it was a real pain in the ass. I got a static IP address
and now this hassle is over with thank God.

If you actually purchase a domain, you can get DNS for free from
http://www.zoneedit.com, that is a good deal, you get your domain DNS
completely for free.

They also have free DNS and subdomains at http://freedns.afraid.org/ but I
have never used them so I cannot tell you how good they are. What the heck
for free and if you have the time and want to experiment, it might be the way
to get your feet wet and it will cost you zero dollars.

SUMMARY:

Get a domain for yourself and subdomians if you want, use the free ones to
get started. Something like timothy.no-ip.com and later on just purchase a
real domain like www.timothylaw.com from 000domains.com for $13.50. This is
not a lot of money for your own real FQDN, you could mow a lawn for that much
money.) Assign the DNS to your IP address.

Setup apache to use name based virtual domains and assign the document root
to the location on your hard drive where the web pages for this site will be.
This is actually a very quick and easy process but I got stuck by overlooking
some very basic stuff. I forgot to uncomment out the NameVirtualHost line and
after doing this, it would only work for me if I added the port name to it
this:

NameVirtualHost *:80

And each container begins this:

<VirtualHost *:80>

Go look at the excellent apache manual on your linux hard drive that comes
with apache for some terrific help and examples for virtual hosts. Find it in
your browser at:
http://<yourIPaddress>/manual
or
http://localhost/manual (do this on the actual apache machine)
After you get apache up and running.

So far as your last question goes about domain and subdomain costs, go look
around on these web sites:

http://freedns.afraid.org
http://www.no-ip.com
http://www.zoneedit.com

....and of course put "free subdomains" and "free dns" in your google search
bar and let 'er rip. Lots of good links there. Virtual hosting is fun and
easy once you get the first one to work, and with free subdomains, you can
experiment a lot with it.

I now have two domains, one is my main one and one that I got for my family
web site to make it easy for my family to go see the site. The first domain I
bought from Network Solutions and this was expensive, $75 to purchase and $35
a year to maintain. The second one I bought from 000domains.com and it cost
$13.50 to buy and $13.50 a year to maintain. I will transfer my original
domain to 000domains when it comes time to renew it again, who wants to pay
$35 a year when I can do it for $13.50? Both are served up by apache on the
same machine and it is each one had it's own server machine.

Once you get this part done, you can do other neat stuff with your domains,
having each one accessible by FTP, setting up sendmail and getting an MX
record for it at the DNS site (You can get free DNS with MX record; www, ftp,
and mail prefixes at http://www.zoneedit.com). How cool would it be to have
your own domain like www.timothylaw.com (Or whatever you decide on.) and have
www.timothylaw.com, timothylaw.com, ftp.timothylaw.com, and your own mail
server at mail.timothylaw.com so you can send an receive email like
(E-Mail Removed)? You can do this for each of your domains if you want, it
is a fun project and you will learn a lot by doing it.

Good luck and have fun, Tim.


--
My email address is invalid, thanks to
all of these rotten spambots.
Email me by assembling this address:
tinykitty "ay tea" ohmster "dee oh tea" com
~Ohmster
 
Reply With Quote
 
Timothy Law
Guest
Posts: n/a

 
      06-09-2004, 03:28 AM
So technically, a machine that hosts a DNS server, several domains and
certainly subdomains, is POSSIBLE?

Thank you all man...and thanks for the long help ohmster!


 
Reply With Quote
 
chris-usenet@roaima.co.uk
Guest
Posts: n/a

 
      06-09-2004, 08:18 AM
Timothy Law <(E-Mail Removed)> wrote:
> I'm on Cable speed connection. So I got one almost static IP.
> If I use that IP for DNS server, ie. dns1.myip.com,
> I can create many of my own domains, right?


No. You need a truly static IP as it must be registered with the
appropriate higher level domain (probably .com in your case).

> For usage of web hosting,
> for example, my dns1.myip.com DNS server will have a mapping of:
> www.timmy1.com maps to /usr/httpd/tim1/
> www.timmy2.com maps to /usr/httpd/tim2/
> and so on...


That mapping is a virtual hosting configuration issue on your web server.

> So I don't have to pay for dns hosting for timmy1 and timmy2 for webservers.
> I could use my own dns server hosting. Is this about right?


Sounds plausible, yes.

> Root DNS -------------> dns1.myip.com (my computer)


You can't do this unless your server has a real static address that
can be guaranteed not to change. This means a DHCP assigned long-lived
address is almost certainly unsuitable.

> and so if I registered for domain name timmy1.com for $7/year. I can have
> its dns as my dns1.myip.com,


Here's a more reliable (better?) solution...

1. Register timmy1.com and timmy2.com with your $7/year provider.

2. Register your server with one of the Dynamic DNS providers such
as dyndns.org. As an example let's call it timmy.dyndns.org.

3. Ensure you run dyndns-aware client software on your server,
so that when (if) its IP address changes, it notifies dyndns.org -
thereby updating your DNS record for timmy.dyndns.org.

4. Create DNS zone records on one of the free DNS providers such
as GraniteCanyon or ZoneEdit, such that you create CNAME
entries of www.timmy1.com and www.timmy2.com that point to
timmy.dyndns.org.

5. Configure your web server to accept virtual hosts of
www.timmy1.com and www.timmy2.com, which refer to different
DocRoot directories.

Chris
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Migrating the USER accounts (and passwords) from one Windows server to another: Web Hosting server Spin Windows Networking 2 07-15-2009 01:54 PM
Minuteman's Production server. your provider's email server sends a message back to the Production server. Don Saklad Linux Networking 0 05-19-2007 07:17 AM
Longhorn Server 6001 with NAP: DHCP Server can't reach IAS Server Shrek Windows Networking 3 04-02-2007 06:21 PM
OpenVPN working between client and server only, but not able to access any machines in server subnet GS Linux Networking 10 12-06-2006 10:48 AM
I can´t access from Device Mobile to RRAS Server, Windows Server 2 Carlos Ortega-Colombia Windows Networking 1 11-02-2005 10:23 PM



1 2 3 4 5 6 7 8 9 10 11