380,079 views
3 votes
3 votes
you need to verify whether dns servers allow dns zone transfers to all hosts. which built-in windows command should you use?

User Mitchkman
by
3.1k points

1 Answer

7 votes
7 votes

Answer:

To verify whether DNS servers allow DNS zone transfers to all hosts, you can use the 'nslookup' command in Windows.

To use 'nslookup', open a command prompt and type the following command:

'nslookup'

This will open the nslookup interactive mode. From here, you can use the server command to specify the DNS server that you want to query, and the ls command to perform a DNS zone transfer.

For example, to query the DNS server at 1.1.1.1 and perform a DNS zone transfer, you would type the following commands:

'server 1.1.1.1'

'ls -d example.com'

This will perform a DNS zone transfer for the domain example.com on the 'DNS server at 1.1.1.1.' The output of the ls command will show all of the DNS records for the domain, including the name servers and resource records.

Keep in mind that DNS zone transfers are typically only allowed to authorized clients, so you may need to have appropriate credentials or permissions in order to perform a DNS zone transfer using nslookup.

Step-by-step explanation:

User Dror Helper
by
3.2k points