Skip to content

Commit

Permalink
Hotfix DNS_IP in entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lmakarov authored Oct 13, 2016
1 parent b331c0d commit 79f5211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ "$1" = 'supervisord' ]; then
# $DNS_DOMAIN IP config for dnsmasq
touch /etc/dnsmasq.d/${DNS_DOMAIN}.conf
# Resolve *.$DNS_DOMAIN to $DNS_IP
echo "address=/${DNS_DOMAIN}/${IP}" >> /etc/dnsmasq.d/${DNS_DOMAIN}.conf
echo "address=/${DNS_DOMAIN}/${DNS_IP}" >> /etc/dnsmasq.d/${DNS_DOMAIN}.conf
# Reverse resolution of $DNS_IP to ${DNS_DOMAIN}
echo $DNS_IP | awk -v dzone=${DNS_DOMAIN} -F . '{print "ptr-record="$4"."$3"."$2"."$1".in-addr.arpa,"dzone}' >> /etc/dnsmasq.d/${DNS_DOMAIN}.conf

Expand Down

0 comments on commit 79f5211

Please sign in to comment.