###RUNNING IMAGE CONFIGURATION FILE####
/etc/bind/named.conf
zone "sysnet.lab" {
type master;
file "/etc/bind/db.sysnet.lab";
allow-transfer { any; };
};
================
/etc/bind/db.sysnet.lab
; ; ; $TTL 604800
@ IN SOA ns.sysnet.lab. nsbk.sysnet.lab. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.sysnet.lab.
@ IN A 192.168.1.99
ns IN A 192.168.1.99
vcenter IN A 192.168.1.150
mkdir -p ~/bind9/config && touch ~/bind9/config/named.conf
touch ~/bind9/config/db.your-domain.com
echo '
zone "your-domain.com" {
type master;
file "/etc/bind/db.your-domain.com";
allow-transfer { any; };
};
' >> ~/bind9/config/named.conf
echo '
$TTL 604800
@ IN SOA ns.your-domain.com. nsbk.your-domain.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.your-domain.com.
@ IN A YOUR-SERVER-IP
ns IN A YOUR-SERVER-IP
host1 IN A YOUR-HOST1-IP
host2 IN A YOUR-HOST2-IP
' >> ~/bind9/config/db.your-domain.com
docker run -d \
-p 53:53/udp \
-v ~/bind9/config:/etc/bind \
nddnam95/my_dns_image
Content type
Image
Digest
Size
102.4 MB
Last updated
about 5 years ago
docker pull nddnam95/my_dns_image