list
sw dns list
List all domains that have a dedicated zone file.
add
sw dns add sw dns create sw dns add example.com
Create a new zone file for DNS. You will be prompted for the domain if not specified in the command line. Do not include www. After creating the zone, the zone index is rebuit and bind is restarted to make changes public.
edit
sw dns edit
sw dns edit example.com
Edit the zone file for a domain. If the file is saved before exiting, Bind is restarted to apply the changes.
reindex
sw dns reindex
After a new DNS zone is added to /etc/bind/zones or removed from said folder outside of SiteWrangler, this script must be called to repopulate the list of zones in Bind.
soa
sw dns soa sw dns soa example.com sw dns soa example.com 2019042301 sw dns soa 2019042301
Set a new SOA serial number to push to all or one DNS zone(s). This is useful after a large batch of DNS changes where you do not want to update each serial by hand. Bind will be restarted to reflect the change but just like any other DNS change, the global DNS system can take up to 48 hours to catch up. SOA values must be 10 digits, be higher than the previous value and should typically be the date followed by two extra digits.
checkexpire
sw dns checkexpire sw dns checkexpire emailadmin
Check the expiration date for domains on the server and warn the user if one or more are set to expire within two weeks. With the ‘emailadmin’ flag set, the system sends an email to the system administrator if any domains are expiring instead of printing the result. By default this script is called once a day by a cron job.
disable
sw dns disable sw dns disable example.com
Disable a zone file in bind, removing it from the zone index.
enable
sw dns enable sw dns enable example.com
Enable a DNS zone file that was previously disabled.
remove
sw dns remove sw dns delete sw dns remove example.com
Delete a DNS zone file and remove it from the zone index.