Initial commit
This commit is contained in:
commit
8707c06d7a
8 changed files with 119 additions and 0 deletions
33
etc/bind/dhcpd.conf
Normal file
33
etc/bind/dhcpd.conf
Normal file
|
@ -0,0 +1,33 @@
|
|||
option domain-name "mydomain.com";
|
||||
option domain-name-servers 10.199.200.1;
|
||||
|
||||
default-lease-time 600;
|
||||
max-lease-time 7200;
|
||||
|
||||
ddns-update-style standard;
|
||||
update-static-leases on;
|
||||
authoritative;
|
||||
key "rndc-key" {
|
||||
algorithm hmac-sha256;
|
||||
secret "<thesecret>";
|
||||
};
|
||||
allow unknown-clients;
|
||||
use-host-decl-names on;
|
||||
|
||||
zone mydomain.com. {
|
||||
primary 10.199.200.1;
|
||||
key rndc-key;
|
||||
}
|
||||
zone 200.199.10.in-addr.arpa. {
|
||||
primary 10.199.200.1;
|
||||
key rndc-key;
|
||||
}
|
||||
|
||||
subnet 10.199.200.0 netmask 255.255.255.0 {
|
||||
range 10.199.200.100 10.199.200.254;
|
||||
option subnet-mask 255.255.255.0;
|
||||
option routers 10.199.200.1;
|
||||
option domain-name "mydomain.com";
|
||||
ddns-domainname "mydomain.com.";
|
||||
ddns-rev-domainname "in-addr.arpa.";
|
||||
}
|
13
etc/bind/named.conf.local
Normal file
13
etc/bind/named.conf.local
Normal file
|
@ -0,0 +1,13 @@
|
|||
zone "mydomain.com" {
|
||||
type master;
|
||||
notify yes;
|
||||
file "/var/lib/bind/db.mydomain.com";
|
||||
allow-update { key rndc-key; };
|
||||
};
|
||||
|
||||
zone "200.199.10.in-addr.arpa" IN {
|
||||
type master;
|
||||
notify yes;
|
||||
file "/var/lib/bind/db.200.199.10.in-addr.arpa.rev";
|
||||
allow-update { key rndc-key; };
|
||||
};
|
38
etc/dhcp/dhcpd.conf
Normal file
38
etc/dhcp/dhcpd.conf
Normal file
|
@ -0,0 +1,38 @@
|
|||
option domain-name "mydomain.com";
|
||||
option domain-name-servers 10.199.200.1;
|
||||
|
||||
default-lease-time 600;
|
||||
max-lease-time 7200;
|
||||
|
||||
ddns-update-style standard;
|
||||
update-static-leases on;
|
||||
authoritative;
|
||||
key "rndc-key" {
|
||||
algorithm hmac-sha256;
|
||||
secret "<mysecret>";
|
||||
};
|
||||
allow unknown-clients;
|
||||
use-host-decl-names on;
|
||||
|
||||
zone mydomain.com. {
|
||||
primary 10.199.200.1;
|
||||
key rndc-key;
|
||||
}
|
||||
zone 200.199.10.in-addr.arpa. {
|
||||
primary 10.199.200.1;
|
||||
key rndc-key;
|
||||
}
|
||||
|
||||
subnet 10.199.200.0 netmask 255.255.255.0 {
|
||||
range 10.199.200.100 10.199.200.254;
|
||||
option subnet-mask 255.255.255.0;
|
||||
option routers 10.199.200.1;
|
||||
option domain-name "mydomain.com";
|
||||
ddns-domainname "mydomain.com.";
|
||||
ddns-rev-domainname "in-addr.arpa.";
|
||||
}
|
||||
|
||||
host example {
|
||||
hardware ethernet 52:54:00:de:ad:af;
|
||||
fixed-address 10.199.200.27;
|
||||
}
|
4
etc/resolv.conf
Normal file
4
etc/resolv.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
nameserver 10.199.200.1
|
||||
nameserver 1.1.1.1
|
||||
nameserver 1.0.0.1
|
||||
search mydomain.com
|
4
etc/systemd/resolved.conf
Normal file
4
etc/systemd/resolved.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
[Resolve]
|
||||
DNS=10.199.200.1,10.199.200.20
|
||||
Domains=mydomain.com
|
Loading…
Add table
Add a link
Reference in a new issue