Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2012
    Location
    Cebu, Philippines
    Posts
    214

    Nameserver Lookup Process

    Hi,

    A domain has 2 nameservers, ns1.domain.com and ns2.domain.com.

    Does it mean that if someone wants to open my website, ISP will start looking at ns1 first then ns2?

    I am asking this since I will want to point ns1 of my domain to the DNS server closer to my target clients(geolocation).

    Thanks in advance.
    Cebu Web Solutions - Cpanel Web Hosting | Cebu Web Designs

  2. #2
    Join Date
    Oct 2012
    Posts
    543
    No, when a browser looks up a domain, it will look at one of the nameservers at random (maybe ns1, maybe ns2). If the first nameserver tried doesn't respond, a second nameserver will be used instead (and if that's down, a third if it exists and so forth). Nameservers are not like MX records which can be given a certain priority.

  3. #3
    Join Date
    Mar 2012
    Location
    Cebu, Philippines
    Posts
    214
    Quote Originally Posted by i7Grendel View Post
    No, when a browser looks up a domain, it will look at one of the nameservers at random (maybe ns1, maybe ns2). If the first nameserver tried doesn't respond, a second nameserver will be used instead (and if that's down, a third if it exists and so forth). Nameservers are not like MX records which can be given a certain priority.
    Thanks a lot for the info.
    Cebu Web Solutions - Cpanel Web Hosting | Cebu Web Designs

  4. #4

    How DNS works

    Hi pauloray

    I don't think this can be done ; it's simply not the way I understand how DNS works.

    This is my understanding of DNS.

    DNS works roughly like this :

    The root servers of the DNS system contain links to the servers for the top level domains e.g. com, edu, uk, de, fr. From those TLD servers, the nameserver for your domain, say example.com, can be reached.

    This happens so quickly it's awesome - mostly because a lot of DNS servers out there, including your and my local ones, cache results at least until the TTL runs out for any given record.

    A DNS server is a machine or set of load-balanced machines answering DNS queries. It has a fixed IP address of it's own. It has to to be accessible at all times.

    Your domain is allocated an IP address which may be unique or shared across a number of domains and that information will be listed in the DNS servers ns1.example.com and ns2.example.com

    The reason there are two name servers is for backup/redundancy purposes - if one goes down the other should still be up.

    So when your client picks up the IP address of your site, it eventually goes to one of your nameservers to pick it up or picks up the cached IP address for your site on it's way through the DNS hierarchy.

    So pointing the ns1.example.com to some other DNS server doesn't make sense - at least to me.

    Kind Regards

    Lesley

  5. #5
    Join Date
    Mar 2012
    Location
    Cebu, Philippines
    Posts
    214
    hi lesley

    thanks for that detailed info.
    Cebu Web Solutions - Cpanel Web Hosting | Cebu Web Designs

Similar Threads

  1. strange dig problem on nameserver lookup!
    By olddocks in forum Hosting Security and Technology
    Replies: 5
    Last Post: 09-24-2009, 07:11 AM
  2. Nameserver lookup
    By mnhassan in forum Reseller Hosting
    Replies: 4
    Last Post: 07-10-2008, 08:02 PM
  3. PRM(Process Resource Monitor) kills apache when kill process
    By IKillBill in forum Hosting Security and Technology
    Replies: 4
    Last Post: 11-12-2005, 10:02 AM
  4. scripts need: dns lookup + nameserver search
    By joec in forum Programming Discussion
    Replies: 1
    Last Post: 04-16-2004, 09:22 AM
  5. £10 ($15) 3 Process Shells (1 1000 User IRCd Process allowed!)
    By a.harris in forum Shared Hosting Offers
    Replies: 0
    Last Post: 03-24-2003, 03:07 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •