23 lines
1.1 KiB
Markdown
23 lines
1.1 KiB
Markdown
Okay, so I have my first domain ever (contrapeso.xyz). How cool is that?
|
|
|
|
I discovered I can spin as many subdomains as I want, which I find very
|
|
cool. I was thinking that it would be pretty neat to have one of them
|
|
pointing to my home network so I can access my machines from out of home.
|
|
|
|
I already kind of set the same thing with duckdns, but the domain you get
|
|
is an ugly duckdns subdomain, and I want to use mine.
|
|
|
|
So, how can I use mine?
|
|
|
|
Apparently, the guys at porkbun have a dynamic dns service. To use it,
|
|
I need to set up a python script as a cronjob in a machine in my local
|
|
network.
|
|
|
|
The script and config template can be found in: https://github.com/porkbundomains/porkbun-dynamic-dns-python
|
|
To get the API keys needed for auth, go to: https://porkbun.com/account/api
|
|
|
|
So I have set up a folder in my home folder called "porkbun-dynamic-dns"
|
|
and placed there the python script and the config file. It creates a DNS
|
|
record for the subdomain home.contrapeso.xyz to our local network IP
|
|
address. I'm going to setup a cronjob to run it periodically and leave it
|
|
running.
|