How can I obtain a name server for domain?

Discussion in 'PHP' started by finekevin, Jan 30, 2008.

  1. #1
    How can I obtain the name sever information for a domain (ex. google.com) from one of these IANA | .com Top-level domains.

    a.gtld-servers.net
    b.gtld-servers.net
    c.gtld-servers.net
    d.gtld-servers.net
    e.gtld-servers.net
    f.gtld-servers.net
    g.gtld-servers.net
    h.gtld-servers.net
    i.gtld-servers.net
    j.gtld-servers.net
    k.gtld-servers.net
    l.gtld-servers.net
    m.gtld-servers.net

    Thank you,
    Kevin
     
    finekevin, Jan 30, 2008 IP
  2. pixeladd

    pixeladd Banned

    Messages:
    2,238
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    #2
    use whois.net

    im sure they provide this info
     
    pixeladd, Jan 30, 2008 IP
  3. ColorWP.com

    ColorWP.com Notable Member

    Messages:
    3,120
    Likes Received:
    100
    Best Answers:
    1
    Trophy Points:
    270
    #3
    You mean to check to what nameserver the domain points to? I am using www.who.is and it does pretty well to give me the needed information.
     
    ColorWP.com, Jan 30, 2008 IP
  4. finekevin

    finekevin Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    whois.net tells the name server information, but it doesn't tell me which server it got the information from. I need to find out exactly which server it obtained the ns information so that I could display it.
     
    finekevin, Jan 30, 2008 IP
  5. ColorWP.com

    ColorWP.com Notable Member

    Messages:
    3,120
    Likes Received:
    100
    Best Answers:
    1
    Trophy Points:
    270
    #5
    I don't think I still understood what do you want, can you give an example?
    The whois sites usually check big databases for the domain name information. This info contains reg dates, owner info, email, expiration and primary & secondary nameserver the domain name is pointed to (given by the webhost, which owns these nameservers so it associates the registered domain with a given webhosting account). If you want to find from which whois domain database the domain checker pulls it's information, then you should use the GoDaddy whois tool.

    Here is an example of a result for whois of the Google.com domain name:
    So the whois data for this domain is contained in the database at whois.markmonitor.com

    Again, I think that was not what you are looking for and please be more specific so I can help you as far as to my knowledge.

    PS: I might be wrong about the information above, so don't laugh please. :)
     
    ColorWP.com, Jan 30, 2008 IP
  6. bobb1589

    bobb1589 Peon

    Messages:
    289
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
  7. finekevin

    finekevin Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Ok guys.. I try to explain:
    In PHP using "dns_get_record" function or NET_DNS, I would be able to get the name server and other information. But I need to go into deeper than that this. I have to find and display the address resolution mechanism.

    Lets say I am querying the "digitalpoint.com" using dns_get_record function on my local system, which is pre-configured with the known address of the root servers. The local system will query one of the root servers to find the server authoritative for the next level down (so in my case the root sever would be asked for the address of a server with detailed knowledge of the digitalpoint top level domain). The local system will then query the second server for the address of a DNS sever so on..

    So my question is that how can I get the information that which severs that the local system is probing. (using PHP).
     
    finekevin, Jan 30, 2008 IP