From: Michael Tremer Date: Wed, 15 Aug 2018 09:10:13 +0000 (+0100) Subject: aws: Setup DNS during init phase X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=647ca912a2addac9ac32d6f91ceeb00c7c184897;p=people%2Fms%2Fipfire-2.x.git aws: Setup DNS during init phase Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/helper/aws-setup b/src/initscripts/helper/aws-setup index 955583c029..777c8b9265 100644 --- a/src/initscripts/helper/aws-setup +++ b/src/initscripts/helper/aws-setup @@ -289,11 +289,22 @@ case "${reason}" in # Add the default route ip route add default via "${new_routers}" + # Setup DNS + for domain_name_server in ${new_domain_name_servers}; do + echo "nameserver ${domain_name_server}" + done > /etc/resolv.conf + + # The system is online now + touch /var/ipfire/red/active + # Import AWS configuration import_aws_configuration ;; EXPIRE|FAIL|RELEASE|STOP) + # The system is no longer online + rm -f /var/ipfire/red/active + # Remove all IP addresses ip addr flush dev "${interface}" ;;