Atilla Tanrikulu

I am an experienced software engineer and architect living in Germany. I’m passionate about distributed scalable enterprise web-based microservices/applications and delivering great user experiences. I have created some amazing enterprise-level applications that many people have used and hopefully enjoyed.

Articles

Java Quick Reference Apache Kafka Tutorial Guvenli Kod Gelistirme Making an Enterprise Scale Angular Project Step by Step Nightly SQL Server Database Backup with command line batch file and windows scheduler AOP Framework without proxy pattern IdentityServer Nedir Middleware Pattern With Csharp And Javascript Docker most used commands Online Proje Dokumantasyonu, Docker, Nginx, mdwiki How to use Github Pages for static websites Inheritance with JavaScript, EC6 (ECMAScript 6, ECMAScript 2015) Object oriented javascript and Inheritance Singleton Pattern with Javascript Factory Pattern with Javascript Open terminal here mac os x service IdentityServer4-Angular-6-integration JMater notlari, kurulum ve kullanim Learn Jekyll in 12 Steps Make Mac Application with Automater from sh script Make spotlight index markdown or code files OAuth 2.0 Nedir (RFC6749) Using Custom CSS and Custom JavaScript to an Angular Project Cross Platform Desktop Application With .Net Core 2x and Angular 6x front-end projects with nodejs gulp bower yeoman and angularjs Host Asp.Net Core on Linux with Apache Redis kurulumu ve ayarlari Useful Mac OS Apps Choosing internet connection on multiple interface windows Name Server Kurulumu How to define domain name for your dynamic IP SQL table data compare, and prepare insert satements Useful Git Commands TFS ile Otomatik deployment yapmak Spring Boot Tutorial Sql server icin maliyetli sorgularin tespit edilmesi Arama Motoru Optimizasyonu (SEO) My installed mac apps

How to define domain name for your dynamic IP

osx if you are not familiar with using the terminal on OSX consider using the JAR file (from the windows-gui) from http://www.etx.ca/

osx (10.8 or older) by default does have cron installed, when you open the crontab, a new crontab will be setup for your user lets get started and make a directory to put your files in, move into it and make our main script these instructions are for the user administrator change the paths to match your user open a new terminal, it will be in your home directory

mkdir duckdns
cd duckdns
vi duck.sh

now copy this text and put it into the file (in vi you hit the i key to insert, ESC then u to undo) The example below is for the domain atilla if you want the configuration for a different domain, use the drop down box above you can pass a comma separated (no spaces) list of domains you can if you need to hard code an IP (best not to - leave it blank and we detect your remote ip) hit ESC then use use arrow keys to move the cursor x deletes, i puts you back into insert mode

echo url="https://www.duckdns.org/update?domains=atilla&token=123123123123123&ip=" | curl -k -o /Users/administrator/duckdns/duck.log -K -

now save the file (in vi hit ESC then :wq! then ENTER) this script will make a https request and log the output in the file duck.log now make the duck.sh file executeable

chmod 700 duck.sh

next we will be using the cron process to make the script get run every 5 minutes

crontab -e

copy this text and paste it at the bottom of the crontab

*/5 * * * * /Users/administrator/duckdns/duck.sh >/dev/null 2>&1

now save the file (CTRL+o then CTRL+x) lets test the script

./duck.sh

this should simply return to a prompt we can also see if the last attempt was successful (OK or bad KO)

cat duck.log

if it is KO check your Token and Domain are correct in the duck.sh script

what now? Well you probably want to setup port forwarding on your router to make use of your new DDNS name we recommend portforward.com to learn all about this.

Date: 2017-10-23 10:20:00 +0000