added initial files
This commit is contained in:
parent
d9d144c5e4
commit
195d6b5ce9
19
general
Normal file
19
general
Normal file
|
@ -0,0 +1,19 @@
|
|||
interface=br-ffhh
|
||||
listen-address=127.0.0.1
|
||||
no-dhcp-interface=br-ffhh
|
||||
no-dhcp-interface=lo
|
||||
bind-interfaces
|
||||
except-interface=lo
|
||||
|
||||
log-facility=/var/log/dnsmasq.log
|
||||
|
||||
domain-needed
|
||||
#bogus-priv ffhh reverse does not work with this enabled
|
||||
no-resolv
|
||||
no-hosts
|
||||
|
||||
cache-size=4096
|
||||
|
||||
# follow the order as defined, so that VPN is used before trying srv01/gw01
|
||||
strict-order
|
||||
|
37
rules
Normal file
37
rules
Normal file
|
@ -0,0 +1,37 @@
|
|||
# all other queries via vpn
|
||||
server=85.214.20.141@mullvad # FoeBud
|
||||
server=213.73.91.35@mullvad # dnscache.berlin.ccc.de
|
||||
server=fd51:2bb2:fd0d::101 # srv01
|
||||
server=fd51:2bb2:fd0d::e01 # and gw01 as backup if vpn is down
|
||||
|
||||
# dn42
|
||||
server=/dn42/172.22.0.53
|
||||
server=/22.172.in-addr.arpa/172.22.0.53
|
||||
server=/23.172.in-addr.arpa/172.22.0.53
|
||||
|
||||
# ff Augsburg
|
||||
server=/ffa/10.11.10.15
|
||||
server=/ffa/10.11.0.8
|
||||
|
||||
# ff tlds via srv01
|
||||
server=/ffhh/fd51:2bb2:fd0d::101
|
||||
server=/ffhl/fd51:2bb2:fd0d::101
|
||||
server=/ffki/fd51:2bb2:fd0d::101
|
||||
server=/dn42/fd51:2bb2:fd0d::101
|
||||
server=/hack/fd51:2bb2:fd0d::101
|
||||
|
||||
# ff tlds via gw01
|
||||
server=/ffhh/fd51:2bb2:fd0d::e01
|
||||
server=/ffhl/fd51:2bb2:fd0d::e01
|
||||
server=/ffki/fd51:2bb2:fd0d::e01
|
||||
server=/dn42/fd51:2bb2:fd0d::e01
|
||||
server=/hack/fd51:2bb2:fd0d::e01
|
||||
|
||||
# ff reverse via srv01
|
||||
server=/112.10.in-addr.arpa/fd51:2bb2:fd0d::101
|
||||
server=/d.0.d.f.2.b.b.2.1.5.d.f.ip6.arpa/fd51:2bb2:fd0d::101
|
||||
|
||||
# ff reverse via gw01
|
||||
server=/112.10.in-addr.arpa/fd51:2bb2:fd0d::e01
|
||||
server=/d.0.d.f.2.b.b.2.1.5.d.f.ip6.arpa/fd51:2bb2:fd0d::e01
|
||||
|
20
updateDnsmasq.sh
Executable file
20
updateDnsmasq.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
# Simple script to update the dnsmasq files from git
|
||||
|
||||
# CONFIGURE THIS TO YOUR GIT DIRECTORY
|
||||
GIT_REPO=/home/ffdnsmasq/dnsmasq
|
||||
|
||||
# CONFIGURE THIS TO THE USER TO RUN THE GIT COMMANDS AS
|
||||
USER=ffdnsmasq
|
||||
|
||||
cd $GIT_REPO
|
||||
|
||||
su -c "git pull" $USER
|
||||
|
||||
if [ ! cmp $GIT_REPO/rules /etc/dnsmasq.d/rules >/dev/null 2>&1 ] || [ ! cmp $GIT_REPO/general /etc/dnsmasq.d/general >/dev/null 2>&1 ];
|
||||
then
|
||||
cp $GIT_REPO/rules /etc/dnsmasq.d/rules
|
||||
cp $GIT_REPO/general /etc/dnsmasq.d/general
|
||||
|
||||
/usr/sbin/service dnsmasq restart
|
||||
fi
|
Loading…
Reference in a new issue