Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fix_dns.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ echo dns = $dns

./list.bash | cut -f1 -d' ' | while read i
do
docker exec $i bash -c "echo nameserver $dns > /etc/resolv.conf"
docker exec $i bash -c "echo search $FQN >> /etc/resolv.conf"
docker exec $i bash -c "sudo echo nameserver $dns > /etc/resolv.conf"
docker exec $i bash -c "sudo echo search $FQN >> /etc/resolv.conf"
done
4 changes: 4 additions & 0 deletions settings.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

## DNS
export DNS_TEMP_DIR=/tmp/sameers-dns-docker/


## CLUSTER1

# Misc
Expand Down
13 changes: 8 additions & 5 deletions start_dns.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
source ./settings.bash

## Prepare directories
mkdir /srv/docker
mkdir /srv/docker/bind
chgrp docker /srv/docker/bind
if [ ! -d $DNS_TEMP_DIR ]; then
mkdir $DNS_TEMP_DIR
mkdir $DNS_TEMP_DIR/bind
#chgrp docker $DNS_TEMP_DIR/bind/
fi


## Calculate the IP
net_ip_pre=`echo $NET_CIDR | cut -f 1 -d'/' | cut -f 1-3 -d'.'`
Expand All @@ -15,5 +18,5 @@ echo ip = $net_ip
docker run --name bind -d --restart=always \
--network $NET_NAME --ip $net_ip \
--publish 10000:10000/tcp \
--volume /srv/docker/bind:/data \
sameersbn/bind:9.10.3-20180127
--volume $DNS_TEMP_DIR/bind/:/data \
sameersbn/bind:9.10.3-20180127