🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
3 messages
3 total messages Started by Emmanuel Fri, 14 Sep 2007 02:47
How to get all the sub domains list of a domain?
#800
Author: Emmanuel
Date: Fri, 14 Sep 2007 02:47
13 lines
1230 bytes
Dear All,

How to get all the sub domains list of a domain?
eg:
if there is a domain borland.com
how can I know there are also newsgroup.borland.com , smtp.borloand.com, 
www.borland.com ?
would command or which component can I to use?
I am using C++builder 6.0

Thank you.

Emmanuel 
Re: How to get all the sub domains list of a domain?
#801
Author: Remy Lebeau (TeamB)
Date: Fri, 14 Sep 2007 03:03
15 lines
1538 bytes
"Emmanuel" <emmanuel@erphk.com> wrote in message
news:46e9f2c1@newsgroups.borland.com...

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

You can try performing a DNS lookup of the domain to retreive its "A",
"CNAME", and "MX" records.  Unfortunately, this will not likely to get you
what you want.  I just tried it for my own domain, and although I know the
records exist on my hosting account, and they work fine when used in
browsers, email programs, etc, none of the records actually appear in any
DNS lookups that I perform using online tools.


Gambit
Re: How to get all the sub domains list of a domain?
#802
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads