diff --git a/Environment/named/InstallNamed.sh b/Environment/named/InstallNamed.sh new file mode 100755 index 0000000..c7d28cb --- /dev/null +++ b/Environment/named/InstallNamed.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +sudo apt-get install bind9 bind9utils bind9-doc +sudo cp db.localdomain install.sh named.conf.local named.conf.options /etc/bind +sudo named-checkconf +sudo systemctl restart bind9 +sudo ufw allow Bind9 +sudo journalctl -u bind9 -f + diff --git a/Environment/named/InstallNamed.sh b/Environment/named/InstallNamed.sh new file mode 100755 index 0000000..c7d28cb --- /dev/null +++ b/Environment/named/InstallNamed.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +sudo apt-get install bind9 bind9utils bind9-doc +sudo cp db.localdomain install.sh named.conf.local named.conf.options /etc/bind +sudo named-checkconf +sudo systemctl restart bind9 +sudo ufw allow Bind9 +sudo journalctl -u bind9 -f + diff --git a/Environment/named/db.localdomain b/Environment/named/db.localdomain new file mode 100644 index 0000000..423112a --- /dev/null +++ b/Environment/named/db.localdomain @@ -0,0 +1,26 @@ +; +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA nuc. root.nuc. ( + 2 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; +@ IN NS nuc.localdomain. +@ IN A 127.0.0.1 + +;your sites +cockpit IN A 192.168.1.116; +openproject IN A 192.168.1.116; +vscode IN A 192.168.1.116; +gitbucket IN A 192.168.1.116; +jenkins IN A 192.168.1.116; +macbookpro IN A 192.168.1.101; +imac27 IN A 192.168.1.108; +kodi IN A 192.168.1.109; +gamingwin10 IN A 192.168.1.112; +nuc IN A 192.168.1.116; + diff --git a/Environment/named/InstallNamed.sh b/Environment/named/InstallNamed.sh new file mode 100755 index 0000000..c7d28cb --- /dev/null +++ b/Environment/named/InstallNamed.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +sudo apt-get install bind9 bind9utils bind9-doc +sudo cp db.localdomain install.sh named.conf.local named.conf.options /etc/bind +sudo named-checkconf +sudo systemctl restart bind9 +sudo ufw allow Bind9 +sudo journalctl -u bind9 -f + diff --git a/Environment/named/db.localdomain b/Environment/named/db.localdomain new file mode 100644 index 0000000..423112a --- /dev/null +++ b/Environment/named/db.localdomain @@ -0,0 +1,26 @@ +; +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA nuc. root.nuc. ( + 2 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; +@ IN NS nuc.localdomain. +@ IN A 127.0.0.1 + +;your sites +cockpit IN A 192.168.1.116; +openproject IN A 192.168.1.116; +vscode IN A 192.168.1.116; +gitbucket IN A 192.168.1.116; +jenkins IN A 192.168.1.116; +macbookpro IN A 192.168.1.101; +imac27 IN A 192.168.1.108; +kodi IN A 192.168.1.109; +gamingwin10 IN A 192.168.1.112; +nuc IN A 192.168.1.116; + diff --git a/Environment/named/named.conf.local b/Environment/named/named.conf.local new file mode 100644 index 0000000..fa878c3 --- /dev/null +++ b/Environment/named/named.conf.local @@ -0,0 +1,7 @@ + +zone "localdomain" IN { + type master; + file "/etc/bind/db.localdomain"; + allow-update { none; }; +}; + diff --git a/Environment/named/InstallNamed.sh b/Environment/named/InstallNamed.sh new file mode 100755 index 0000000..c7d28cb --- /dev/null +++ b/Environment/named/InstallNamed.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +sudo apt-get install bind9 bind9utils bind9-doc +sudo cp db.localdomain install.sh named.conf.local named.conf.options /etc/bind +sudo named-checkconf +sudo systemctl restart bind9 +sudo ufw allow Bind9 +sudo journalctl -u bind9 -f + diff --git a/Environment/named/db.localdomain b/Environment/named/db.localdomain new file mode 100644 index 0000000..423112a --- /dev/null +++ b/Environment/named/db.localdomain @@ -0,0 +1,26 @@ +; +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA nuc. root.nuc. ( + 2 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; +@ IN NS nuc.localdomain. +@ IN A 127.0.0.1 + +;your sites +cockpit IN A 192.168.1.116; +openproject IN A 192.168.1.116; +vscode IN A 192.168.1.116; +gitbucket IN A 192.168.1.116; +jenkins IN A 192.168.1.116; +macbookpro IN A 192.168.1.101; +imac27 IN A 192.168.1.108; +kodi IN A 192.168.1.109; +gamingwin10 IN A 192.168.1.112; +nuc IN A 192.168.1.116; + diff --git a/Environment/named/named.conf.local b/Environment/named/named.conf.local new file mode 100644 index 0000000..fa878c3 --- /dev/null +++ b/Environment/named/named.conf.local @@ -0,0 +1,7 @@ + +zone "localdomain" IN { + type master; + file "/etc/bind/db.localdomain"; + allow-update { none; }; +}; + diff --git a/Environment/named/named.conf.options b/Environment/named/named.conf.options new file mode 100644 index 0000000..fc74275 --- /dev/null +++ b/Environment/named/named.conf.options @@ -0,0 +1,26 @@ +options { + directory "/var/cache/bind"; + + forwarders { + 8.8.8.8; + 8.8.4.4; + }; + + dnssec-enable yes; + + allow-recursion { any; }; + allow-query { any; }; + allow-query-cache { any; }; + + listen-on { 127.0.0.1; 192.168.1.116; }; + + //======================================================================== + // If BIND logs error messages about the root key being expired, + // you will need to update your keys. See https://www.isc.org/bind-keys + //======================================================================== + dnssec-validation yes; + + auth-nxdomain no; # conform to RFC1035 + listen-on-v6 { any; }; +}; +