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

@  agyat : (24 May 2013 - 05:15 PM) O Dear, Where Are You? Without Your Words This Sb Is ..
@  agyat : (23 May 2013 - 01:23 AM) Wow! Mr. Sb Back Home.
@  OpaQue : (23 May 2013 - 12:44 AM) Ting
@  OpaQue : (24 April 2013 - 02:44 PM) I guess, Time to run Mycent script.
@  OpaQue : (24 April 2013 - 02:43 PM) wow.. not much spam. except habatt posting lot of links.. :P
@  yordan : (23 April 2013 - 01:04 PM) You're welcome, agyat. Nice to have been helpful. Second lesson: try full words, "you" instead of "EW".
@  agyat : (23 April 2013 - 05:03 AM) @YORDAN: tHANK EW FOR YOUR FIRST LESSON.   :D
@  yordan : (22 April 2013 - 09:43 PM) @agyat : "why don't you help me", or "please help me", or "please teach us"
@  yordan : (22 April 2013 - 09:42 PM) welcome back, velma
@  velma : (22 April 2013 - 07:51 AM) **yawns** Good to be back, wonder what is going on here :)
@  agyat : (22 April 2013 - 03:50 AM) Oh! so, why don't help me learn english..
@  yordan : (21 April 2013 - 08:38 PM) The goal mentioned by shiu : "learning english, learning computer"
@  agyat : (21 April 2013 - 06:31 PM) WHAT GOAL?
@  yordan : (20 April 2013 - 10:39 AM) yes, that's our goal. simultaneouly learning English and teaching/learning computer using.
@  shiyu : (20 April 2013 - 07:30 AM) learning english,learning computer
@  yordan : (19 April 2013 - 01:11 PM) Oh, I see, it's just a trick in order to force people looking at your texte. Somehow smart, maybe.
@  agyat : (19 April 2013 - 02:54 AM) And of course I know it is not SEO friendly.
@  agyat : (19 April 2013 - 02:52 AM) There may be two possible answers for that ....


1) Shout was posted using mobile keypad.

2) To force people read content carefully and/or with more concentration.
@  agyat : (19 April 2013 - 02:49 AM) There may be two possible answers for that ....
@  yordan : (18 April 2013 - 09:35 PM) however, why this mixing of capital letters in the middle of your text?

Replying to What Is Dns And How Does Dns Work?


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

Casanova

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

vizskywalker

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

nightfox

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!

miCRoSCoPiC^eaRthLinG

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.

spacewaste

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.

vizskywalker

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

nightfox

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

Review the complete topic (launches new window)