Subversion Repositories ALCASAR

Rev

Rev 2833 | Rev 2838 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2833 Rev 2836
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-dns-local.sh 2833 2020-06-14 10:13:18Z rexy $
2
# $Id: alcasar-dns-local.sh 2836 2020-06-15 22:03:08Z rexy $
3
 
3
 
4
# alcasar-dns-local.sh
4
# alcasar-dns-local.sh
5
# by Rexy - 3abtux
5
# by Rexy - 3abtux
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 45... Line 45...
45
server:
45
server:
46
	local-zone: "$INT_DNS_DOMAIN" static
46
	local-zone: "$INT_DNS_DOMAIN" static
47
	local-data: "$INT_DNS_HOST.$INT_DNS_DOMAIN A $INT_DNS_IP"
47
	local-data: "$INT_DNS_HOST.$INT_DNS_DOMAIN A $INT_DNS_IP"
48
	local-data-ptr: "$INT_DNS_IP $INT_DNS_HOST.$INT_DNS_DOMAIN"
48
	local-data-ptr: "$INT_DNS_IP $INT_DNS_HOST.$INT_DNS_DOMAIN"
49
EOF
49
EOF
50
	if [ "$HOSTNAME" != 'alcasar' ]
-
 
51
	then
-
 
52
		echo -e "\tlocal-zone: \"alcasar\" static" >> /etc/unbound/conf.d/common/local-dns/${INTIF}.conf
-
 
53
		echo -e "\tlocal-zone: \"alcasar A $PRIVATE_IP\"" >> /etc/unbound/conf.d/common/local-dns/${INTIF}.conf
-
 
54
		echo -e "\tlocal-zone: \"alcasar\" static" >> /etc/unbound/conf.d/forward/iface.lo.conf
-
 
55
		echo -e "\tlocal-zone: \"alcasar A 127.0.0.1\"" >> /etc/unbound/conf.d/forward/iface.lo.conf
-
 
56
	fi
-
 
57
		cat << EOF > $LOCAL_DNS_BLACKHOLE_FILE
50
		cat << EOF > $LOCAL_DNS_BLACKHOLE_FILE
58
server:
51
server:
59
	server:
52
	server:
60
	interface: ${INT_DNS_IP}@56
53
	interface: ${INT_DNS_IP}@56
61
	access-control-view: $INT_DNS_IP_MASK $INTIF
54
	access-control-view: $INT_DNS_IP_MASK $INTIF