Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  yordan : (19 June 2013 - 02:28 PM) Long Life To Asta New Era
@  agyat : (19 June 2013 - 01:58 PM) New Era Start At Asta Or Asta Start In New Era. :unsure:
@  yordan : (16 June 2013 - 05:41 PM) You're Welcome, Agyat!
@  agyat : (16 June 2013 - 07:38 AM) Thanks Yordan...
@  velma : (16 June 2013 - 12:06 AM) I Have Asked Opa To Check For A Backup.. He'll Let Me Know Soon :)
@  velma : (16 June 2013 - 12:05 AM) T_T It Seems That Someone Has Deleted That Topic Since I Found The Url Of The Topic But It Gives Me An Error
@  yordan : (15 June 2013 - 10:31 PM) @velma : It's A Tuto On How To Create A Login Program.
@  yordan : (15 June 2013 - 10:31 PM) Happy Birthday To Youuuuuu Agyat!
@  yordan : (15 June 2013 - 10:31 PM) Ba$
@  agyat : (15 June 2013 - 04:41 PM) :(
@  agyat : (15 June 2013 - 04:41 PM) Where The Hall I Were? 15Th Is Almost At End And No-One Wished Me "happy Birthday"!!!
@  velma : (14 June 2013 - 10:39 AM) Which Tutorial Is He Searching For?
@  velma : (14 June 2013 - 10:38 AM) Which Tutorial Is He Searching For?
@  yordan : (14 June 2013 - 07:47 AM) Ok, Have A Look Tomorrow.
@  yordan : (13 June 2013 - 03:19 PM) @velma, Can You Have A Look At Feelay's Problem? Seems That His Tutorial Is Not Searchable Today.
@  Feelay : (13 June 2013 - 08:11 AM) Oh, Haha
@  velma : (12 June 2013 - 05:39 PM) T_T Lately My Levels Of Procrastination..... **sigh**
@  velma : (12 June 2013 - 05:38 PM) I'll Do It Later
@  velma : (12 June 2013 - 05:38 PM) Procrastinators.. People Who Keep Saying "i'll Do This In A Bit"
@  Feelay : (12 June 2013 - 02:05 PM) Deal Punishments To What?

Photo
- - - - -

What Is Dns And How Does Dns Work?


6 replies to this topic

#1 nightfox

nightfox

    NiGHTFoX - Hiding in the dark

  • Members
  • 680 posts

Posted 29 June 2005 - 04:54 PM

Here is one thing that has confused me since I got my own domain.

What is DNS and how does it work?

I know that DNS takes text (mydomain.com) and sets it up with an IP address. Well, one account that I pay for is on a shared server. When I bought my hosting, I was given two Name Server URLs, NS5.Myhost.com and NS6.Myhost.com. All I had to do was log into GoDaddy and put those name server listings into my domain settings and wait 24-48 hours (cjb.net takes about 15-30 minutes).

Here's what confuses me. On the server, my account is home/myaccount/public_html/ how exactly does my domain know to point to that path and not someone elses??? While I was waiting for my domain to update, I was given a temporary address of http://SERVERIP/~myaccount
Then when my domain worked, all the files were still there, just accessable from my domain!

Shared hosting is the biggest thing that confuses me. Like Astahost is shared hosting (right?). We're all squeesed together on a server and a community (so to speak). So how does Apache know that the website I have hosted here is in home/myaccount/public_html/? I have installed Apache on my Windows machine, and all I know is that I can set the server root to be in C:\WWW if I wanted it to. So how does Apache know that there are lots of directories to look in? Man! The webhosting business is complicated stuff!

[N]F

Edited by microscopic^earthling, 29 June 2005 - 05:08 PM.


#2 vizskywalker

vizskywalker

    Techno-Necromancer

  • Members
  • 1,018 posts
  • Location:The Net

Posted 29 June 2005 - 06:11 PM

There are many different ways in which networks work. I believe that astahost assigns a different static ip address to each site, but I'm not sure. Either way, here is how the basic idea works:

1) You point your domain to the nameserver, this name server is a DNS.

2) You must also tell the company running the nameserver what your domain is, for example, with astahost when setting up an account, you must tell them your domain.

3) When the namesevrer receives your domain, it checks on which local ip address that domain is supposed to point to, this is why informing your host company is important.

4) A router/switch directs the query to the proper machine on the local server.

That is a very oversimplified explanation, if you want more in depth info, either post here or talk to ICANN.

ICANN is the organization in charge of all domain name registration and ip address assigning.

~Viz

#3 spacewaste

spacewaste

    Premium Member

  • Members
  • 385 posts
  • Location:Ontario

Posted 29 June 2005 - 06:56 PM

Hmmm, exactly what walker said.

But if you didn't understand that, and from what I've gathered.

On shared hosting there is one IP address which points to the main website of the shared hosting.

For example, astahost's IP address poitns to astahost.com even though it uses that ip address for everywebsite.

The way dns works for shared hosting is that you get the nameserver (which is unique for each account registered at a set webhost). And that nameserver points to the directory where your webhosting account is located.

So for astahost. We all share one IP address. But each name server points to a different area mapped out on that IP. That's why you must provide your webhost and your nameserver when you buy a domain name.

This is only what I've understood from the matter and from semi personal expiriences.

Hope it helps. Sorry if I'm wrong.

#4 miCRoSCoPiC^eaRthLinG

miCRoSCoPiC^eaRthLinG

    PsYcheDeLiC dR3aMeR

  • [MODERATOR]
  • 2,248 posts
  • Gender:Male
  • Location:Bangkok, Thailand
  • Interests:Photography, Magic Tricks, Numismatics & Philately to some extent, Being a nuisance in general (that's my favourite)
  • myCENTs:NEGATIVE[-21.50]

Posted 29 June 2005 - 07:17 PM

Actually - as far as I know - instead of having the nameserver pointing to different folders - the redirection happens to different PORTS on the same IP... that's how it's supposed to work out in most cases. These ports lead straight to your public_html - which is set at Apache's DocumentRoot ... so irrespective of whose home drive it is, apache will always look for a public_html and try and load the index.php/html in it.

#5 nightfox

nightfox

    NiGHTFoX - Hiding in the dark

  • Members
  • 680 posts

Posted 29 June 2005 - 09:27 PM

Ah, I am starting to get it! So like I have hosting here (with a cjb.net domain because I don't have enough money for a TLD :lol:) and I have the DNS set to ns2.astahost.com. I am a little confused by what spacewaste said. If what spacewaste said was true, wouldn't there be THOUSANDS of AstaHost.com name servers?

And also, if you do a whois lookup on AstaHost.com, it's name servers are also pointed to ns1.astahost.com and ns2.astahost.com. If you have to wait about 24 hours for the DNS to update for a domain, how could AstaHost.com ever get updated??? All I can say is that I get everything else on web hosting. It is just the name server part that gets me lost!

#6 vizskywalker

vizskywalker

    Techno-Necromancer

  • Members
  • 1,018 posts
  • Location:The Net

Posted 29 June 2005 - 11:28 PM

spacewaste was almost correct. It isn't thousands of nameservers, but thousands of PORTS (as m^e said) on each nameserver, so really only one server is required. ThHere are over 5000 usable ports for a nameserver.

~Viz

#7 Casanova

Casanova

    Advanced Member

  • Members
  • 133 posts

Posted 04 October 2005 - 01:49 PM

DNS, stands for " Domain Name System" and helps resolving names to IP numbers as it is much easier for people to remember logical names rather then a 12 digit number.


DNS uses 3 major components ”Resolvers (client)”, Name Servers” and ”Domain Name Space”. In basic DNS communication a client (Resolver) sends a query to a Name Server, which returns with the requested information, or an address for another Name Server, an error message is received if the query gives no results



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users