Skip to content

Instantly share code, notes, and snippets.

@boxysean
Last active June 11, 2020 15:49
Show Gist options
  • Save boxysean/5492723 to your computer and use it in GitHub Desktop.
Save boxysean/5492723 to your computer and use it in GitHub Desktop.
bind for outernet
zone "outernet" {
type master;
file "/etc/bind/zones/outernet.db";
};
zone "56.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.56.168.192.in-addr.arpa";
};
; file: zones/outernet.db
; replace example.com with your domain name. do not forget the . after the domain name!
; Also, replace ns1 with the name of your DNS server
$TTL 86400
$ORIGIN outernet.
@ 1D IN SOA ns.outernet. admin.outernet. (
; Do not modify the following lines!
2012042401
28800
3600
604800
38400
)
; Replace the following line as necessary:
; ns1 = DNS Server name
; mta = mail server name
; example.com = domain name
IN A 192.168.56.101
IN NS ns.outernet.
IN MX 10 mail.outernet.
; Replace the IP address with the right IP addresses.
www IN A 192.168.56.101
mail IN A 192.168.56.101
ns IN A 192.168.56.101
==> rev.56.168.192.in-addr.arpa <==
; replace example.com with yoour domain name, ns1 with your DNS server name.
; The number before IN PTR example.com is the machine address of the DNS server. in my case, it's 1, as my IP address is 192.168.0.1.
@ IN SOA ns.outernet. admin.outernet. (
2012042201
28800
604800
604800
86400
)
IN NS ns.outernet.
1 IN PTR outernet
; file: zones/rev.56.158.192.in-addr.arpa
;
; replace example.com with yoour domain name, ns1 with your DNS server name.
; The number before IN PTR example.com is the machine address of the DNS server. in my case, it's 1, as my IP address is 192.168.0.1.
@ IN SOA ns.outernet. admin.outernet. (
2012042201
28800
604800
604800
86400
)
IN NS ns.outernet.
1 IN PTR outernet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment