diff options
Diffstat (limited to 'vnfs/vCPE/scripts/v_dns_install.sh')
-rw-r--r-- | vnfs/vCPE/scripts/v_dns_install.sh | 9 |
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 |