Using Dynamic DNS with HANA Development Edition

Diversified Semantic Layer logo

I’ve used Dynamic DNS with my Windows instances on Amazon EC2 for a while.

With the introduction of the HANA Development Edition, I was keen to also be able to use one common DNS name for any IP of my HANA instance on startup. Especially when creating demo clustered environments of 2-3 EC2 instances (HANA, BusinessObjects BI4, and Data Services), if all the instances can talk to each other straight away on startup (and your client tools on your laptop as well), it cuts down config time whether you presenting to a customer or wanting to start developing straight away.

Some of you may use Elastic IPs, I have found these to be a little tedious in creation and application, and apparently you are also charged for them when your instances aren’t running (which is most of the time for most devs). The solution presented in the video is an alternative to this approach. Please also note that this solution really applies to any Linux system, not just Amazon EC2 and/or HANA.

The detail presented in the video (available in HD so you can see the command line!) below will follow. Enjoy:

Here is the complete script:

  1. #!/bin/sh  
  2.   
  3. ### BEGIN INIT INFO  
  4. # Provides:       dyndns  
  5. # Required-Start: $network $remote_fs $syslog  
  6. # Required-Stop:  $null  
  7. # Default-Start:  3 4 5  
  8. # Default-Stop:   0 1 6  
  9. # Description:    Update Dyndns  
  10. # Short-Description: Update Dyndns  
  11. ### END INIT INFO  
  12.   
  13. . /etc/rc.status  
  14. rc_reset  
  15.   
  16.   
  17. USER=””  
  18. PASS=””  
  19. DOMAIN=””  
  20.   
  21.   
  22. case “$1” in  
  23.      start)  
  24.           wget -O /dev/null http://$USER:$PASS@members.dyndns.org/nic/update?hostname=$DOMAIN$PASS@members.dyndns.org/nic/update?hostname=$DOMAIN  
  25.           rc_status -v  
  26.           ;;  
  27. esac  
  28. rc_exit  

The commands I executed in the video above:

  1. cd /etc/init.d/
  2. vi dyndns (paste script in here)
  3. chmod u+x dyndns
  4. chkconfig -a dyndns
  5. service service dyndns start
  6. sudo ln -s /etc/init.d/dyndns /etc/init.d/rc5.d/S99dyndns

Lastly, if you aren’t familiar with opening an SSH connection to your HANA Development Edition, the steps to do so are posted in this SCN post (refer to Step 5).

I hope you enjoy this video, and welcome any feedback or questions.

(Cross posted on SCN here)

Author: Josh Fletcher

Joshua Fletcher has worked with Business Intelligence applications for over eleven years, focusing on both the SAP BusinessObjects toolset at a deep technical level, as well as broader BI solutions from a strategy and roadmap perspective. He started with Crystal Reports v8 at the beginning of his career, and is now fully certified in SAP BusinessObjects. He also has extensive experience in business analysis, data governance, business intelligence strategy and solution architecture, as well as a passion for data warehouse and ETL design and development.

Leave a Reply

Your email address will not be published. Required fields are marked *