Rackspace †
外部ツール †
- https://github.com/linickx/rsdns
- bash製
- 2013-05-15 現在、使用可能
- recordsは1回に100件までしか取得できない。次はtotalEntriesを見て、100件を超えていたらlimit=10&offset=100のように指定する。4.4.1. List Records - Cloud DNS Developer Guide - API v1.0
git clone https://github.com/linickx/rsdns.git
cat > ~/.rsdns_config << 'EOS'
RSUSER=linickx
RSAPIKEY=123456
RSPATH=~/rsdns/
UKAUTH=0
EOS
./rsdns/rsdns list
ID Domain
3709282 test01.example.com
3709283 test02.example.com
./rsdns/rsdns list -d test01.example.com
Record ID Type Name Data
A-9974998 A ip.test01.example.com 112.78.117.185
CNAME-11594590 CNAME www.test01.example.com example.com
MX-4404921 MX mail01.test01.example.com priority:10 example.com
MX-4404922 MX mail02.test01.example.com priority:20 example.com
NS-8770632 NS test01.example.com dns1.stabletransit.com
NS-8770633 NS test02.example.com dns2.stabletransit.com
TXT-510572 TXT spf.test01.example.com txt spf
- Export Domain機能追加パッチ。BIND9のzoneファイル形式で出力 rsdns.export.patch
patch -p0 < rsdns.export.patch
rsdns export -d test01.example.com
test01.example.com. 300 IN SOA ns.rackspace.com. dexdev.gmail.com. 1368085708 21600 3600 1814400 300
test01.example.com. 300 IN NS dns1.stabletransit.com.
test01.example.com. 300 IN NS dns2.stabletransit.com.
ip.test01.example.com. 300 IN A 112.78.117.185
mail01.test01.example.com. 300 IN MX 10 example.com.
mail02.test01.example.com. 300 IN MX 20 example.com.
spf.test01.example.com. 300 IN TXT "txt spf"
www.test01.example.com. 300 IN CNAME example.com.
sudo yum install python-setuptools
git clone https://github.com/kwminnick/rackspace-dns-cli.git
cd rackspace-dns-cli
sudo python setup.py install
export OS_USERNAME=user
export OS_PASSWORD=yadayada
export OS_TENANT_NAME=123456
export OS_AUTH_URL=http://auth.api.rackspacecloud.com/v2.0/
export NOVA_RAX_AUTH=1
rackdns domain-list
ERROR: n/a (HTTP 400)