Update DNS Records before .CORP sub-domain Add to DNS

This commit is contained in:
IntenseWebs 2024-01-11 22:01:25 -06:00
parent 225e8f1d79
commit 69ad581489
25 changed files with 142 additions and 41 deletions

View File

@ -0,0 +1,9 @@
#! /bin/bash
cd ~/bind-backups
sudo cp -f /etc/bind/named.* .
sudo cp -f /var/lib/bind/* .
sudo cp -f /etc/resolv.conf .
sudo cp -f /etc/hosts .
sudo cp -f /etc/hostname .
sudo cp -f /etc/network/interfaces .

View File

@ -1,7 +1,7 @@
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// Please read /usr/share/doc/bind9/README.Debian for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

View File

@ -5,13 +5,6 @@ zone "intensewebs.com" {
also-notify { 192.168.1.141; };
};
zone "corp.intensewebs.com" {
type master;
file "/var/lib/bind/db.corp.intensewebs.com";
allow-transfer { 192.168.1.141; };
also-notify { 192.168.1.141; };
};
zone "iweb.city" {
type master;
file "/var/lib/bind/db.iweb.city";

View File

@ -17,11 +17,6 @@ options {
allow-query-cache { trustedclients; };
allow-recursion { trustedclients; };
forwarders {
9.9.9.9;
149.112.112.112;
};
dnssec-validation no;
listen-on-v6 { any; };

View File

@ -1,7 +1,7 @@
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// Please read /usr/share/doc/bind9/README.Debian for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

View File

@ -5,13 +5,6 @@ zone "intensewebs.com" {
also-notify { 192.168.1.141; };
};
zone "corp.intensewebs.com" {
type master;
file "/var/lib/bind/db.corp.intensewebs.com";
allow-transfer { 192.168.1.141; };
also-notify { 192.168.1.141; };
};
zone "iweb.city" {
type master;
file "/var/lib/bind/db.iweb.city";

View File

@ -17,11 +17,6 @@ options {
allow-query-cache { trustedclients; };
allow-recursion { trustedclients; };
forwarders {
9.9.9.9;
149.112.112.112;
};
dnssec-validation no;
listen-on-v6 { any; };

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,9 @@
#! /bin/bash
cd ~/bind-backups
sudo cp -f /etc/bind/named.* .
sudo cp -f /var/lib/bind/* .
sudo cp -f /etc/resolv.conf .
sudo cp -f /etc/hosts .
sudo cp -f /etc/hostname .
sudo cp -f /etc/network/interfaces .

View File

@ -0,0 +1 @@
ns2.intensewebs.com

View File

@ -0,0 +1,8 @@
127.0.0.1 localhost
127.0.1.1 ns2.intensewebs.com ns2
192.168.1.141 ns2.intensewebs.com ns2
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

View File

@ -0,0 +1,18 @@
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug enp1s0
iface enp1s0 inet static
address 192.168.1.141
netmask 255.255.255.0
gateway 192.168.1.131
dns-domain intensewebs.com
dns-nameservers 192.168.1.140 192.168.1.141

View File

@ -0,0 +1,11 @@
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";

View File

@ -0,0 +1,30 @@
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/usr/share/dns/root.hints";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};

View File

@ -0,0 +1,23 @@
zone "intensewebs.com" {
type slave;
file "/var/lib/bind/db.intensewebs.com";
masters { 192.168.1.140; };
};
zone "iweb.city" {
type slave;
file "/var/lib/bind/db.iweb.city";
masters { 192.168.1.140; };
};
zone "nukvm.org" {
type slave;
file "/var/lib/bind/db.nukvm.org";
masters { 192.168.1.140; };
};
zone "1.168.192.in-addr.arpa" {
type slave;
file "/var/lib/bind/db.1.168.192";
masters { 192.168.1.140; };
};

View File

@ -0,0 +1,23 @@
acl trustedclients {
localhost;
localnets;
192.168.1.140; #ns1.intensewebs.com
192.168.1.141; #ns2.intensewebs.com
192.168.1.142; #ns3.intensewebs.com
192.168.1.143; #ns4.intensewebs.com
192.168.1.0/24;
192.168.2.0/24;
};
options {
directory "/var/cache/bind";
recursion yes;
allow-query { trustedclients; };
allow-query-cache { trustedclients; };
allow-recursion { trustedclients; };
dnssec-validation no;
listen-on-v6 { any; };
};

View File

@ -1,7 +1,7 @@
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// Please read /usr/share/doc/bind9/README.Debian for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

View File

@ -4,12 +4,6 @@ zone "intensewebs.com" {
masters { 192.168.1.140; };
};
zone "corp.intensewebs.com" {
type slave;
file "/var/lib/bind/db.corp.intensewebs.com";
masters { 192.168.1.140; };
};
zone "iweb.city" {
type slave;
file "/var/lib/bind/db.iweb.city";

View File

@ -17,11 +17,6 @@ options {
allow-query-cache { trustedclients; };
allow-recursion { trustedclients; };
forwarders {
9.9.9.9;
149.112.112.112;
};
dnssec-validation no;
listen-on-v6 { any; };

View File

@ -0,0 +1,4 @@
domain intensewebs.com
search intensewebs.com
nameserver 192.168.1.140
nameserver 192.168.1.141