bokumin.org

Github

How to get a free domain with MyDNS

This article is a translation of the following my article:

 

 

* Translated automatically by Google.
* Please note that some links or referenced content in this article may be in Japanese.
* Comments in the code are basically in Japanese.

 

by bokumin

 

How to get a free domain with MyDNS

 

 

Introduction

 

My server uses a domain obtained for free using MyDNS.
The following is a summary of how to obtain a domain using MyDNS.

 

First, create a MyDNS account. Follow the steps below.

 

  1. Visit MyDNS
  2. Create a free account
  3. Complete email address verification

 

Next, we will set up the domain.

 

  1. Login to control panel
  2. Choose a “subdomain” that can be used for free
  3. Set your desired domain name (e.g. myapp.○○.○○)

 

The acquisition is complete.

 

Also, for those who do not have a fixed IP (including me) (general home Internet line), you need to periodically run the shell script below using Cron etc. Looking at the MyDNS terms and conditions, I think an interval of about 5 to 10 minutes is best.

 

#!/bin/sh                                                                       

#mydnsIDとパスワードを入力
MYDNS_USER="ユーザーID"
MYDNS_PASS="パスワード"

curl -u "$MYDNS_USER:$MYDNS_PASS" https://www.mydns.jp/login.html

 

The automatic acquisition is complete. The domain will be available for use in about an hour at the latest.

 

I hope this will be helpful for those who want to log in to their home PC while on the go.

 

End