mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
12 lines
363 B
Bash
Executable File
12 lines
363 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
|
|
echo "BACKEND_IP=$BACKEND_IP"
|
|
echo "Loaded configuration (/etc/dnsmasq.conf):"
|
|
cat /etc/dnsmasq.conf
|
|
# Run dnsmasq in the foreground
|
|
dnsmasq -k --port=5353
|