aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/vCPE/scripts/v_dns_install.sh
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2018-12-05 13:37:37 -0500
committerBrian Freeman <bf1936@att.com>2018-12-06 12:15:39 -0500
commit93d9f376bfbd11f7583ac75eff409967aee049ec (patch)
tree7b6e4cd23d954f1a7122941dce85161446115270 /vnfs/vCPE/scripts/v_dns_install.sh
parent3d9c60866a1ca4f083b4acce5276eef498d7250b (diff)
Add demo to vCPE Public DNS
Issue-ID: INT-755 Change-Id: I660c964cff60c33ae3f3c4aa9b47d2960789ea43 Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'vnfs/vCPE/scripts/v_dns_install.sh')
-rw-r--r--vnfs/vCPE/scripts/v_dns_install.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/vnfs/vCPE/scripts/v_dns_install.sh b/vnfs/vCPE/scripts/v_dns_install.sh
index 81669d1b..dfb0e085 100644
--- a/vnfs/vCPE/scripts/v_dns_install.sh
+++ b/vnfs/vCPE/scripts/v_dns_install.sh
@@ -68,6 +68,13 @@ update-rc.d v_dns.sh defaults
# Install Bind
mkdir /etc/bind/zones
sed -i "s/OPTIONS=.*/OPTIONS=\"-4 -u bind\"/g" /etc/default/bind9
+mv db_demo_onap_org /etc/bind/zones/db.demo.onap.org
+mv named.conf.options /etc/bind/
+mv named.conf.local /etc/bind/
+CPE_PUBLIC_IP=$(cat /opt/config/cpe_public_net_ipaddr.txt)
+sed -i "s/x.x.x.x/"$CPE_PUBLIC_IP"/g" /etc/bind/named.conf.options
+sleep 1
+
# Rename network interface in openstack Ubuntu 16.04 images. Then, reboot the VM to pick up changes
if [[ $CLOUD_ENV != "rackspace" ]]
@@ -81,4 +88,4 @@ then
reboot
fi
-./v_dns_init.sh \ No newline at end of file
+./v_dns_init.sh