Kaptain.
Telegram /
LinkedIn /
Email /
GIT /
RSS /
GPG /
Заказ печатных плат

№ 11982 В разделе
Sysadmin
от April 23rd, 2023,
В подшивках: Selectel
You want to migrate from your own DNS server (also known as Bind or Named) to Selectel cloud. Some DNS hosting services like dns.he.net also can export whole zone as Named format file. So convenient! But Selectel suggested python script not functional on my computer so I wrote my own converter on Golang.
At first step get API token in Selectel control panel. Next save your exported zone as file. Download release binary from https://git.blindage.org/21h/selectel-dns-bind-zone-upload to your home directory and make executable.
Some records you may not wanted to migrate, like NS or SOA, so edit your zone file before import or use special flags at run (see -help).
Sample import:
TOKEN=selectel_token_2342 ./selectel-dns-bind-zone-upload \
-domain blindage.org -zonefile blindage.org.txt -includeNS
Supported record types at this moment:
PTR and others not listed here will be ignored.
https://git.blindage.org/21h/selectel-dns-bind-zone-upload
Fortune cookie: It's been so long since I made love I can't even remember who gets tied up. -- Joan Rivers
Leave a Reply