🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #802

Re: How to get all the sub domains list of a domain?

#802
From: Remy Lebeau (TeamB)
Date: Fri, 14 Sep 2007 03:26
27 lines
2189 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:46e9fa51$1@newsgroups.borland.com...

> You can try performing a DNS lookup of the domain
> to retreive its "A", "CNAME", and "MX" records.

Actually, as I think about it more, this won't work at all.  You would only
be retreiving the addresses and nameservers associated with the main domain
itself.  Nothing about subdomains would be listed in those types of records.
DNS is not designed to work that way.

Researching into this more, it turns out that you would need to perform a
"zone transfer" query instead, which unfortunately you may or may not be
able to perform as it usually requires special permission on the DNS server
you are connecting to.  It is primarily meant for DNS servers to exchange
database information with each other.  The 'nslookup' command-line utility
that ships with Windows NT4+ will allow you to retreive zone records for a
domain, provided you have it connect to a DNS server that allows zone
transfers.  You can use that for testing.  Have a look at the following
article:

    nslookup and DNS Zone Transfers
    http://tinyurl.com/3lktq


Gambit
Technical Details
Message-ID: <46e9ff9c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46e9f2c1@newsgroups.borland.com> <46e9fa51$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,af9e98e128d8d268
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <46e9f2c1@newsgroups.borland.com> <46e9fa51$1@newsgroups.borland.com>
Subject: Re: How to get all the sub domains list of a domain?
Date: Thu, 13 Sep 2007 20:26:24 -0700
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.29.61
Message-ID: <46e9ff9c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1189740444 75.83.29.61 (13 Sep 2007 20:27:24 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail