Compare commits

...

2 Commits

Author SHA1 Message Date
Zachariah Gibbens 0b1ce034f0 modified: pdnsd.sh 2023-03-25 03:19:15 +00:00
Zachariah Gibbens 8c6b0e814d modified: dnss.sh 2023-03-25 03:14:21 +00:00
2 changed files with 7 additions and 0 deletions

View File

@ -4,3 +4,7 @@ sudo cp ../dnss/dnss.socket ../dnss/dnss.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl restart dnss.service
sudo systemctl restart dnss.socket
sudo iptables -t nat -I OUTPUT -p udp --dport 53 -j DNAT --to 127.0.0.1:53
sudo iptables -t nat -I OUTPUT -p tcp --dport 53 -j DNAT --to 127.0.0.1:53
sudo iptables -t nat -I OUTPUT -p udp --dport 5353 -j DNAT --to 127.0.0.1:53
sudo iptables -t nat -I OUTPUT -p tcp --dport 5353 -j DNAT --to 127.0.0.1:53

View File

@ -5,3 +5,6 @@ sudo sed -i s/START_DAEMON=no/START_DAEMON=yes/g /etc/default/pdnsd
sudo cp /etc/pdnsd.conf /etc/pdnsd.conf.orig
sudo cp ../pdnsd/pdnsd.conf /etc/pdnsd.conf
sudo systemctl restart pdnsd.service
echo "Restarting pdnsd again"
sleep 5
sudo systemctl restart pdnsd.service