From 60f89345aff407d35abc801e743671ab01428a47 Mon Sep 17 00:00:00 2001 From: Chris Long Date: Thu, 16 Apr 2020 22:00:05 -0700 Subject: [PATCH] Override Bootstrap DNS Settings --- Vagrant/bootstrap.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Vagrant/bootstrap.sh b/Vagrant/bootstrap.sh index cc3248f..c7b10cf 100644 --- a/Vagrant/bootstrap.sh +++ b/Vagrant/bootstrap.sh @@ -1,5 +1,10 @@ #! /bin/bash +# Override existing DNS Settings +echo -e " eth1:\n dhcp4: true\n nameservers:\n addresses: [8.8.8.8,8.8.4.4]" >> /etc/netplan/01-netcfg.yaml +netplan apply +sed -i 's/nameserver 127.0.0.53/nameserver 8.8.8.8/g' /etc/resolv.conf && chattr +i /etc/resolv.conf + # Get a free Maxmind license here: https://www.maxmind.com/en/geolite2/signup # Required for the ASNgen app to work: https://splunkbase.splunk.com/app/3531/ export MAXMIND_LICENSE=