• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

How to add DNS zone trough command line

JorisK

New Pleskian
Hi,

I want to create a script to automate the migration of DNS zones. I noticed the dns and dns_template commands that are abailible trough CLI but i can't find an option to create a DNS zone.

Is there a way to create a DNS zone trough CLI?

Best Regards,
Joris Kemperman
 
When you create domain zone will be created too.


Igor, i did this:

[root@ppa01 bin]# ./domain --create joristest.nl
SUCCESS: Creation of domain 'joristest.nl' completed.

When i open DNS zones, nothing is created. Did i forget something?
 
I tried this:

[root@ppa01 bin]# ./domain --create joristest2.nl -dns true
[root@ppa01 bin]# ./dns --update-soa joristest2.nl -soa-ttl 5H
SUCCESS: Updating SOA record for joristest2.nl
[root@ppa01 bin]#

(the domain command isnt listed in the command line reference list)

You would say it should now list this domain under DNS zones but unfortunately nothing is visible.
 
You should create subscription for domain:

# plesk bin subscription -c subscription.sc

# cat /var/named/chroot/var/subscription.sc
; *** This file is automatically generated by Plesk ***
$TTL 86400

@ IN SOA ns.subscription.sc. autotester.plesk.ru. (
1383888195 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
10800 ) ; Minimum

subscription.sc. IN NS ns.subscription.sc.
ns.subscription.sc. IN A 10.58.103.100
subscription.sc. IN A 10.58.103.100
webmail.subscription.sc. IN A 10.58.103.100
mail.subscription.sc. IN A 10.58.103.100
ipv4.subscription.sc. IN A 10.58.103.100
ftp.subscription.sc. IN CNAME subscription.sc.
www.subscription.sc. IN CNAME subscription.sc.
subscription.sc. IN MX 10 mail.subscription.sc.
subscription.sc. IN TXT "v=spf1 +a +mx -all"
 
You should create subscription for domain:

# plesk bin subscription -c subscription.sc

# cat /var/named/chroot/var/subscription.sc
; *** This file is automatically generated by Plesk ***
$TTL 86400

@ IN SOA ns.subscription.sc. autotester.plesk.ru. (
1383888195 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
10800 ) ; Minimum

subscription.sc. IN NS ns.subscription.sc.
ns.subscription.sc. IN A 10.58.103.100
subscription.sc. IN A 10.58.103.100
webmail.subscription.sc. IN A 10.58.103.100
mail.subscription.sc. IN A 10.58.103.100
ipv4.subscription.sc. IN A 10.58.103.100
ftp.subscription.sc. IN CNAME subscription.sc.
www.subscription.sc. IN CNAME subscription.sc.
subscription.sc. IN MX 10 mail.subscription.sc.
subscription.sc. IN TXT "v=spf1 +a +mx -all"
 
Back
Top