mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-07-25 13:10:50 +02:00
252e566475
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
14 lines
450 B
Bash
Executable File
14 lines
450 B
Bash
Executable File
#!/bin/sh
|
|
# Get the IP address of the backend container
|
|
BACKEND_IP=$(getent hosts backend | awk '{ print $1 }')
|
|
|
|
# Update the dnsmasq configuration file
|
|
echo "address=/.test/$BACKEND_IP" > /etc/dnsmasq.conf
|
|
# labs can use *.labs.test
|
|
echo "address=/labs.test/172.20.0.150" >> /etc/dnsmasq.conf
|
|
echo "BACKEND_IP=$BACKEND_IP"
|
|
echo "Loaded configuration (/etc/dnsmasq.conf):"
|
|
cat /etc/dnsmasq.conf
|
|
# Run dnsmasq in the foreground
|
|
dnsmasq -k --port=5353
|