Skip to content

Instantly share code, notes, and snippets.

@romot-co
Created November 8, 2014 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romot-co/8f091d64316cfbaf4616 to your computer and use it in GitHub Desktop.
Save romot-co/8f091d64316cfbaf4616 to your computer and use it in GitHub Desktop.
NSDでおてがるにDNSサーバをたちあげる ref: http://qiita.com/futosu/items/8259d16a38d0cab713cf
do-ip6: no
zonesdir: "/etc/nsd/zone"
//正引き
zone:
  name: “example.com”
  zonefile: “example.com.zone”
//逆引き
zone:
  name: 200.150.100.in-addr.arpa
  zonefile: 200.150.100.in-addr.arpa.zone
$TTL 3600
@ IN SOA ns.example.com. root.example.com. (
201xxxxx ;Serial 有効な開始日
3600 ;Refresh
900 ;Retry
3600000 ;Expire
3600 ) ;Minimum
IN NS ns.example.com. ;ネームサーバー
example.com. IN MX 10 mail.example.com. ;メールサーバー
@ IN A 100.150.200.250
mail IN A 100.150.200.250
$TTL 3600
@ IN SOA ns.example.com. root.example.com. (
201xxxxx ;Serial
3600 ;Refresh
900 ;Retry
3600000 ;Expire
3600 ) ;Minimum
IN NS ns.example.com.
IN A 255.255.254.0 ;サブネットマスク
100 IN PTR ns.example.com.
100 IN PTR mail.example.com.
systemctl start nsd
systemctl enable nsd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment