Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://technet.microsoft.com/en-us/library/aa998082(v=exchg.65).aspx
- http://linux.m2osw.com/bind_errors
- https://devops.profitbricks.com/tutorials/configure-authoritative-name-server-using-bind-on-centos-6/
- https://www.digitalocean.com/community/tutorials/how-to-configure-bind-as-an-authoritative-only-dns-server-on-ubuntu-14-04
- http://serverfault.com/questions/310400/cofigure-bind-for-google-apps-mx-record
- sudo apt-get update
- sudo apt-get install bind9 bind9utils bind9-doc
- sudo nano /etc/bind/named.conf.options
- options {
- directory "/var/cache/bind";
- recursion no;
- allow-transfer { none; };
- dnssec-validation auto;
- auth-nxdomain no; # conform to RFC1035
- listen-on-v6 { any; };
- };
- nano /etc/bind/named.conf.local
- zone "example.com" {
- type master;
- file "/etc/bind/zones/db.example.com";
- allow-transfer { 192.0.2.2; };
- };
- zone "2.0.192.in-addr.arpa" {
- type master;
- file "/etc/bind/zones/db.192.0.2";
- };
- mkdir /etc/bind/zones
- cp /etc/bind/db.local /etc/bind/zones/db.example.com
- cp /etc/bind/db.127 /etc/bind/zones/db.192.0.2
- nano /etc/bind/zones/db.example.com
- $TTL 604800
- @ IN SOA ns1.example.com. admin.example.com. (
- 5 ; Serial
- 604800 ; Refresh
- 86400 ; Retry
- 2419200 ; Expire
- 604800 ) ; Negative Cache TTL
- ;
- ; Name servers
- example.com. IN NS ns1.example.com.
- example.com. IN NS ns2.example.com.
- ; A records for name servers
- ns1 IN A 192.0.2.1
- ns2 IN A 192.0.2.2
- ; Other A records
- @ IN A 192.0.2.3
- www IN A 192.0.2.3
- nano db.192.0.2
- $TTL 604800
- @ IN SOA example.com. admin.example.com. (
- 5 ; Serial
- 604800 ; Refresh
- 86400 ; Retry
- 2419200 ; Expire
- 604800 ) ; Negative Cache TTL
- ;
- ; Name servers
- IN NS ns1.example.com.
- IN NS ns2.example.com.
- ; PTR records
- 1 IN PTR ns1.example.com.
- 2 IN PTR ns2.example.com.
- 3 IN PTR www.example.com.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement