Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2437
  • Last Modified:

How to find sub domains

How can I discover all the DNS entried for a domain.
We have a domain with various sub domains, such as name.domain.com.au

Is there a easy way to list of all these and their IP's and record types such as MX or A records.
I am refering to external routable domains not domains within our firewall.
We add sub domains all the time so if there is a easy way to do this via a web page or somehting that would be great.
0
cbpee
Asked:
cbpee
1 Solution
 
NopiusCommented:
> We have a domain with various sub domains, such as name.domain.com.au
Where this domain is hosted (I mean DNS server)?

> Is there a easy way to list of all these and their IP's and record types such as MX or A records.
That's possible ONLY If DNS server configuration allows this. Typically subdomain queries are allowed only for slave domain servers or for group of specially defined clients of that server.

> We add sub domains all the time so if there is a easy way to do this via a web page or somehting that would be great.

Ask your domain hosting provider to allow AXFR queries from your IP addresses. If they have a 'bind' nameserver, this can be done with named.conf option 'allow-transfer { your.firewall.ip.address; ... };'. Without this option you are unable to perform recursive queries.

With this option and _TCP_ port 53 opened you may do:
# nslookup
> server x.x.x.x
> ls -l domain.com.au

Where server x.x.x.x is your provider's DNS that have allow-transfer enabled for you.

0
 
cbpeeCTOAuthor Commented:
many thanks
0
 
axelloCommented:
This ONLY works if the DNS server allows AXFR transfers to be made. Most internet providers don't allow this and it is standard security procedure to disable it.

So, your mileage may vary.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now