{"id":4812,"date":"2026-08-29T18:32:46","date_gmt":"2026-08-29T09:32:46","guid":{"rendered":"https:\/\/donguri3.net\/server-tech\/onamae-domain-mydns-dynamic-dns-2\/"},"modified":"2026-08-29T18:32:47","modified_gmt":"2026-08-29T09:32:47","slug":"onamae-domain-mydns-dynamic-dns","status":"publish","type":"post","link":"https:\/\/donguri3.net\/en\/server-tech\/linux-server-network\/onamae-domain-mydns-dynamic-dns\/","title":{"rendered":"Setting up Dynamic DNS on MyDNS.jp Using a Domain Acquired via Onamae.com"},"content":{"rendered":"<p>This time, I took on the challenge of configuring a custom domain obtained through Onamae.com to be used as a Dynamic DNS (DDNS).<\/p>\n<p>While Onamae.com does provide a Dynamic DNS service, I used MyDNS.jp instead of Onamae.com&#8217;s built-in Dynamic DNS because I wanted to use a tool called ddclient.<br \/>}<br \/>\n  I&#8217;ll introduce the step-by-step procedure in detail!<\/p>\n<p>For details on the machine used, please check the following article.<br \/>\n<a href=\"https:\/\/donguri3.net\/server\/oci-always-free-ubuntu\/\">Getting an Ubuntu Machine Using OCI (Oracle Cloud Infrastructure) Always Free<\/a><\/p>\n<hr \/>\n<h2>Acquiring a Domain on Onamae.com<\/h2>\n<p>First, I acquired a custom domain on Onamae.com.<\/p>\n<ul>\n<li>As an example, I purchased the domain &#8220;example.com&#8221;.<\/li>\n<\/ul>\n<p>Although Onamae.com offers a Dynamic DNS service, ddclient does not support it.<br \/>\nTherefore, I chose MyDNS.jp as the update destination for Dynamic DNS.<\/p>\n<hr \/>\n<h2>Configuring Dynamic DNS Using ddclient<\/h2>\n<p>I used a tool called ddclient to update the Dynamic DNS. I set up the environment with the following steps.<\/p>\n<p>1. Install ddclient<\/p>\n<ul>\n<li>The environment used is Ubuntu 22.04. ddclient can be installed from the standard repository.\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-bash\" data-lang=\"Bash\"><code>sudo apt update\nsudo apt install ddclient<\/code><\/pre>\n<\/div>\n<\/li>\n<\/ul>\n<p>2. Introduce the unofficial ddclient<\/p>\n<ul>\n<li>The standard version of ddclient does not support the MyDNS.jp update protocol. By using an unofficial version created by a volunteer, integration with MyDNS.jp becomes possible.<br \/>\nGet it from <a href=\"https:\/\/www.mhserv.info\/co7\/mydns.php\">here<\/a>. Much appreciated!~<\/li>\n<li>Overwrite the official version of ddclient with the unofficial version:\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-bash\" data-lang=\"Bash\"><code>sudo cp {\u975e\u516c\u5f0f\u7248ddclient\u306e\u30d1\u30b9} \/usr\/sbin\/ddclient<\/code><\/pre>\n<\/div>\n<\/li>\n<\/ul>\n<p>3. Fix the location of ddclient.conf<\/p>\n<ul>\n<li>Introducing the unofficial version changes the path of the configuration file, so I fixed it with the following steps:\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-bash\" data-lang=\"Bash\"><code>sudo mkdir \/etc\/ddclient\nsudo ln -s \/etc\/ddclient.conf \/etc\/ddclient\/<\/code><\/pre>\n<\/div>\n<\/li>\n<\/ul>\n<p>4. Configure MyDNS.jp Nameserver Settings<\/p>\n<ul>\n<li>I changed the DNS settings for the domain acquired on Onamae.com to MyDNS.jp. This enables IP updates through MyDNS.jp.<\/li>\n<\/ul>\n<p>5. Configure ddclient.conf<\/p>\n<ul>\n<li>Added the following content to <code>\/etc\/ddclient.conf<\/code>:\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-plain\" data-lang=\"Plain Text\"><code>ssl=no\nprotocol=mydns\nserver=ipv4.mydns.jp\nuse=web, web=checkip.dyndns.org\/ web-skip='IP Address'\nlogin={mydns\u306e\u30ed\u30b0\u30a4\u30f3ID}\npassword={mydns\u306e\u30ed\u30b0\u30a4\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9}\n{\u304a\u540d\u524d.com\u3067\u53d6\u5f97\u3057\u305f\u30c9\u30e1\u30a4\u30f3}<\/code><\/pre>\n<\/div>\n<\/li>\n<\/ul>\n<hr \/>\n<h2>Operation Check and Adjustment<\/h2>\n<p>1. Check and Delete Cache<\/p>\n<ul>\n<li>IP address caches are saved in <code>\/var\/cache\/ddclient\/ddclient.cache<\/code>. Deleting this file during testing makes it easier to check the update status:\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-bash\" data-lang=\"Bash\"><code>sudo rm \/var\/cache\/ddclient\/ddclient.cache<\/code><\/pre>\n<\/div>\n<\/li>\n<\/ul>\n<p>2. Verify IP Update<\/p>\n<ul>\n<li>By default, ddclient checks and updates the IP address every 300 seconds.<\/li>\n<li>Access mydns.jp to check if the IP has been updated. If it looks like the following, you&#8217;re good to go:\n<div class=\"tr\">\n<div class=\"td\" data-darkreader-inline-bgcolor=\"\"><span style=\"color: #20ff20;\" data-darkreader-inline-color=\"\">DNS UPDATE<\/span> : {\u304a\u540d\u524d.com\u3067\u53d6\u5f97\u3057\u305f\u30c9\u30e1\u30a4\u30f3\u540d}<\/div>\n<\/div>\n<div class=\"tr\">\n<div class=\"td\" data-darkreader-inline-bgcolor=\"\"><span style=\"color: #ff2020;\" data-darkreader-inline-color=\"\">IPv4 UPDATE<\/span> : {mydns\u306e\u30ed\u30b0\u30a4\u30f3ID} {IP\u30a2\u30c9\u30ec\u30b9} (\uff1f), http, la01<\/div>\n<\/div>\n<\/li>\n<li>Locally, the updated content is reflected in <code>ddclient.cache<\/code>, so you can check it with the following command:\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-bash\" data-lang=\"Bash\"><code><span style=\"background-color: inherit; color: inherit; font-family: inherit; font-size: var(--hcb--fz,14px);\">cat \/var\/cache\/ddclient\/ddclient.cache<\/span><\/code><\/pre>\n<\/div>\n<\/li>\n<\/ul>\n<p>3. Run ddclient as a Daemon<\/p>\n<ul>\n<li>Once the update is successful, run ddclient as a resident background process:\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-bash\" data-lang=\"Bash\"><code>sudo systemctl enable ddclient\nsudo systemctl start ddclient<\/code><\/pre>\n<\/div>\n<\/li>\n<\/ul>\n<hr \/>\n<h2>Conclusion<\/h2>\n<p>I built a Dynamic DNS setup using a domain acquired from Onamae.com, combined with MyDNS.jp and ddclient!<\/p>\n<ul>\n<li>Key Points:\n<ol>\n<li>Although Onamae.com supports Dynamic DNS, it is incompatible with ddclient, hence the use of MyDNS.jp.<\/li>\n<li>Using an unofficial ddclient makes MyDNS.jp updates possible.<\/li>\n<li>Minor tasks such as fixing configuration file paths and deleting caches are required.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p>As a result, I was able to automate IP address updates and build a comfortable environment. If you are considering running Dynamic DNS for a similar purpose, please give it a try.<\/p>\n<p>Also, please let me know in the comments if you have any questions or feedback!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This time, I took on the challenge of configuring a custom domain obtained through Onamae.com to be used as a  [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":1066,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"https:\/\/donguri3.net\/?p=88","footnotes":""},"categories":[1170],"tags":[123,20,21,352,100,10,353,98,331],"class_list":["post-4812","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-server-network","tag-dns","tag-oci","tag-oracle-cloud-infrastructure","tag-ubuntu","tag-ubuntu-22-04","tag-server","tag-353","tag-98","tag-331","en-US"],"_links":{"self":[{"href":"https:\/\/donguri3.net\/wp-json\/wp\/v2\/posts\/4812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/donguri3.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/donguri3.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/donguri3.net\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/donguri3.net\/wp-json\/wp\/v2\/comments?post=4812"}],"version-history":[{"count":1,"href":"https:\/\/donguri3.net\/wp-json\/wp\/v2\/posts\/4812\/revisions"}],"predecessor-version":[{"id":4815,"href":"https:\/\/donguri3.net\/wp-json\/wp\/v2\/posts\/4812\/revisions\/4815"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/donguri3.net\/wp-json\/wp\/v2\/media\/1066"}],"wp:attachment":[{"href":"https:\/\/donguri3.net\/wp-json\/wp\/v2\/media?parent=4812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/donguri3.net\/wp-json\/wp\/v2\/categories?post=4812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/donguri3.net\/wp-json\/wp\/v2\/tags?post=4812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}