Created
November 8, 2014 20:24
-
-
Save romot-co/8f091d64316cfbaf4616 to your computer and use it in GitHub Desktop.
NSDでおてがるにDNSサーバをたちあげる ref: http://qiita.com/futosu/items/8259d16a38d0cab713cf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systemctl start nsd | |
systemctl enable nsd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment