How to list domains with their nameservers on a DirectAdmin server

H

Have you ever wondered how to list all domains with their name servers? Need to transfer a domain to a new server and want to check how they resolve? Well, there is a solution. check it now.

there is a simple script How to do all this, and more.

Description:
    This is a script to list directadmin domains with a requested from
    DNS additional information.

Usage:
    ./da_domains.sh <options>

Options:
    --domains  - just list domains without DNS queries
    --ns       - list domains with their nameservers
    --mx       - list domains with their MX records
    --ipv4     - list domains with their IPv4
    --ipv6     - list domains with their IPv6

Upload it to the server and run as root:

cd ~
wget -O da_domains.sh 
chmod 755 da_domains.sh
./da_domains.sh --help

List DirectAdmin domains with their nameservers

./da_domains.sh --ns

The command will output a list of domains containing name servers, like the following:

- poralix.com: ns1.tripledns.com. ns2.tripledns.net. ns3.tripledns.nl.
- poralix.net: ns1.tripledns.com. ns2.tripledns.net. ns3.tripledns.nl.
- poralix.nl: ns1.tripledns.com. ns2.tripledns.net. ns3.tripledns.nl.

If you want to list domains that use CloudFlare call the command like this:

 ./da_domains.sh --ns | grep cloudflare

This will give the following output

- ma*****k.com: jeremy.ns.cloudflare.com. miki.ns.cloudflare.com.
- wa*****s.com: jeremy.ns.cloudflare.com. miki.ns.cloudflare.com.

I have hidden my domains here. Your list may vary.

That’s it. May you be successful.

Add comment

By Ranjan