These commands are used to create DNS zones and records using the 'dnscmd' command in Windows.

The first command creates primary DNS zones named 'test1.com' to 'test150.com'. Each zone is created with the '/primary' option, indicating that it is the primary zone for that domain. The '/file' option specifies the filename for the zone file, which is set to 'test%a.com.zone'. The '%a' variable is used to iterate through the numbers 1 to 150.

The second command creates A records within each zone. Each record is named 'test%a.com', where '%a' is the number from 1 to 150. The record type is 'A', indicating it is an IPv4 address record. The IP address is set to '100.100.100.100'.

Batch DNS Zone and Record Creation with dnscmd in Windows

原文地址: https://www.cveoy.top/t/topic/62L 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录