mirror of
https://github.com/IntenseWebs/server-configs.git
synced 2024-11-22 00:17:21 -06:00
Update DNS Records before .CORP sub-domain Add to DNS
This commit is contained in:
parent
225e8f1d79
commit
69ad581489
9
ns1.intensewebs.com/dnsbackup.sh
Executable file
9
ns1.intensewebs.com/dnsbackup.sh
Executable 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 .
|
@ -1,7 +1,7 @@
|
|||||||
// This is the primary configuration file for the BIND DNS server named.
|
// 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
|
// Please read /usr/share/doc/bind9/README.Debian for information on the
|
||||||
// structure of BIND configuration files in Debian, *BEFORE* you customize
|
// structure of BIND configuration files in Debian, *BEFORE* you customize
|
||||||
// this configuration file.
|
// this configuration file.
|
||||||
//
|
//
|
||||||
// If you are just adding zones, please do that in /etc/bind/named.conf.local
|
// If you are just adding zones, please do that in /etc/bind/named.conf.local
|
||||||
|
@ -5,13 +5,6 @@ zone "intensewebs.com" {
|
|||||||
also-notify { 192.168.1.141; };
|
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" {
|
zone "iweb.city" {
|
||||||
type master;
|
type master;
|
||||||
file "/var/lib/bind/db.iweb.city";
|
file "/var/lib/bind/db.iweb.city";
|
||||||
|
@ -17,11 +17,6 @@ options {
|
|||||||
allow-query-cache { trustedclients; };
|
allow-query-cache { trustedclients; };
|
||||||
allow-recursion { trustedclients; };
|
allow-recursion { trustedclients; };
|
||||||
|
|
||||||
forwarders {
|
|
||||||
9.9.9.9;
|
|
||||||
149.112.112.112;
|
|
||||||
};
|
|
||||||
|
|
||||||
dnssec-validation no;
|
dnssec-validation no;
|
||||||
|
|
||||||
listen-on-v6 { any; };
|
listen-on-v6 { any; };
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// This is the primary configuration file for the BIND DNS server named.
|
// 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
|
// Please read /usr/share/doc/bind9/README.Debian for information on the
|
||||||
// structure of BIND configuration files in Debian, *BEFORE* you customize
|
// structure of BIND configuration files in Debian, *BEFORE* you customize
|
||||||
// this configuration file.
|
// this configuration file.
|
||||||
//
|
//
|
||||||
// If you are just adding zones, please do that in /etc/bind/named.conf.local
|
// If you are just adding zones, please do that in /etc/bind/named.conf.local
|
||||||
|
@ -5,13 +5,6 @@ zone "intensewebs.com" {
|
|||||||
also-notify { 192.168.1.141; };
|
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" {
|
zone "iweb.city" {
|
||||||
type master;
|
type master;
|
||||||
file "/var/lib/bind/db.iweb.city";
|
file "/var/lib/bind/db.iweb.city";
|
||||||
|
@ -17,11 +17,6 @@ options {
|
|||||||
allow-query-cache { trustedclients; };
|
allow-query-cache { trustedclients; };
|
||||||
allow-recursion { trustedclients; };
|
allow-recursion { trustedclients; };
|
||||||
|
|
||||||
forwarders {
|
|
||||||
9.9.9.9;
|
|
||||||
149.112.112.112;
|
|
||||||
};
|
|
||||||
|
|
||||||
dnssec-validation no;
|
dnssec-validation no;
|
||||||
|
|
||||||
listen-on-v6 { any; };
|
listen-on-v6 { any; };
|
||||||
|
BIN
ns2.intensewebs.com/db.1.168.192
Normal file
BIN
ns2.intensewebs.com/db.1.168.192
Normal file
Binary file not shown.
BIN
ns2.intensewebs.com/db.intensewebs.com
Normal file
BIN
ns2.intensewebs.com/db.intensewebs.com
Normal file
Binary file not shown.
BIN
ns2.intensewebs.com/db.iweb.city
Normal file
BIN
ns2.intensewebs.com/db.iweb.city
Normal file
Binary file not shown.
BIN
ns2.intensewebs.com/db.nukvm.org
Normal file
BIN
ns2.intensewebs.com/db.nukvm.org
Normal file
Binary file not shown.
9
ns2.intensewebs.com/dnsbackup.sh
Executable file
9
ns2.intensewebs.com/dnsbackup.sh
Executable 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 .
|
1
ns2.intensewebs.com/hostname
Normal file
1
ns2.intensewebs.com/hostname
Normal file
@ -0,0 +1 @@
|
|||||||
|
ns2.intensewebs.com
|
8
ns2.intensewebs.com/hosts
Normal file
8
ns2.intensewebs.com/hosts
Normal 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
|
18
ns2.intensewebs.com/interfaces
Normal file
18
ns2.intensewebs.com/interfaces
Normal 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
|
11
ns2.intensewebs.com/named.conf
Normal file
11
ns2.intensewebs.com/named.conf
Normal 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";
|
30
ns2.intensewebs.com/named.conf.default-zones
Normal file
30
ns2.intensewebs.com/named.conf.default-zones
Normal 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";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
23
ns2.intensewebs.com/named.conf.local
Normal file
23
ns2.intensewebs.com/named.conf.local
Normal 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; };
|
||||||
|
};
|
23
ns2.intensewebs.com/named.conf.options
Normal file
23
ns2.intensewebs.com/named.conf.options
Normal 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; };
|
||||||
|
};
|
@ -1,7 +1,7 @@
|
|||||||
// This is the primary configuration file for the BIND DNS server named.
|
// 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
|
// Please read /usr/share/doc/bind9/README.Debian for information on the
|
||||||
// structure of BIND configuration files in Debian, *BEFORE* you customize
|
// structure of BIND configuration files in Debian, *BEFORE* you customize
|
||||||
// this configuration file.
|
// this configuration file.
|
||||||
//
|
//
|
||||||
// If you are just adding zones, please do that in /etc/bind/named.conf.local
|
// If you are just adding zones, please do that in /etc/bind/named.conf.local
|
||||||
|
@ -4,12 +4,6 @@ zone "intensewebs.com" {
|
|||||||
masters { 192.168.1.140; };
|
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" {
|
zone "iweb.city" {
|
||||||
type slave;
|
type slave;
|
||||||
file "/var/lib/bind/db.iweb.city";
|
file "/var/lib/bind/db.iweb.city";
|
||||||
|
@ -17,11 +17,6 @@ options {
|
|||||||
allow-query-cache { trustedclients; };
|
allow-query-cache { trustedclients; };
|
||||||
allow-recursion { trustedclients; };
|
allow-recursion { trustedclients; };
|
||||||
|
|
||||||
forwarders {
|
|
||||||
9.9.9.9;
|
|
||||||
149.112.112.112;
|
|
||||||
};
|
|
||||||
|
|
||||||
dnssec-validation no;
|
dnssec-validation no;
|
||||||
|
|
||||||
listen-on-v6 { any; };
|
listen-on-v6 { any; };
|
||||||
|
4
ns2.intensewebs.com/resolv.conf
Normal file
4
ns2.intensewebs.com/resolv.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
domain intensewebs.com
|
||||||
|
search intensewebs.com
|
||||||
|
nameserver 192.168.1.140
|
||||||
|
nameserver 192.168.1.141
|
Loading…
Reference in New Issue
Block a user