Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##########################################################################################################
- #Useful information
- #DNS Privacy Public Resolvers : https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Public+Resolvers
- # Comparison of policy and privacy statements 2019: #https://dnsprivacy.org/wiki/display/DP/Comparison+of+policy+and+privacy+statements+2019
- ##########################################################################################################
- #################################################
- #How to Setup Bind9 DNS server step-by-step guide
- #################################################
- #update system
- apt update && apt full-upgrade -y
- #Install Bind packages
- apt install bind9 bind9utils bind9-doc
- #Check Bind9 status
- systemctl status bind9
- #add info to /etc/default/named
- vim /etc/default/named
- #Add -4 for ipv4 to this line in /etc/default/named #startup option
- OPTIONS="-u bind -4"
- #reload bind9
- systemctl reload-or-restart bind9
- #Optional - To show you the primary configuration file for the BIND DNS server named
- cat /etc/bind/named.conf
- #Add dns forwarders to this file /etc/bind/named.conf.options
- vim /etc/bind/named.conf.options
- forwarders {
- 8.8.8.8;
- 8.8.4.4;
- };
- };
- #reload bind9
- systemctl reload-or-restart bind9
- #add info to the end of the file in /etc/bind/named.conf.local
- vim /etc/bind/named.conf.local
- zone "hjalti.me" {
- type master;
- file "/etc/bind/db.hjalti.me";
- };
- #copy empty example file and create a Zone file called /etc/bind/db.hjalti.me
- cp /etc/bind/db.empty /etc/bind/db.hjalti.me
- #Add info to file /etc/bind/db.hjalti.me
- vim /etc/bind/db.hjalti.me
- ; BIND reverse data file for empty rfc1918 zone
- ;
- ; DO NOT EDIT THIS FILE - it is used for multiple zones.
- ; Instead, copy it, edit named.conf, and use that copy.
- ;
- $TTL 86400
- @ IN SOA ns1.hjalti.me. root.localhost. (
- 1 ; Serial
- 604800 ; Refresh
- 86400 ; Retry
- 2419200 ; Expire
- 86400 ) ; Negative Cache TTL
- ;
- @ IN NS ns1.hjalti.me.
- @ IN NS ns1.hjalti.me.
- ;@ IN NS ns2.hjalti.me.
- ns1 IN A 192.168.144.4
- hjalti.me. IN A 192.168.144.4
- www IN A 192.168.144.4
- vhost1 IN A 192.168.144.50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement