How to get a domain name for your server

From Minetest Wiki
Revision as of 09:11, 28 April 2018 by DrFrankenstone (talk | contribs)
Jump to navigation Jump to search

What is DNS

Skip to Step 1 if you already know about dynamic DNS.

DNS just means "Domain Name System". A domain name is a label that's easy for people to read or remember, which computers can use to look up an internet address (IP address).

For example, the domain "wiki.minetest.net" tells your computer to go to 89.188.9.43

If your game server is being run from your home, its internet address is likely to change over time, so having a domain name means you can give that out to friends/players and it won't change, even as your IP Address changes. A domain name can also direct people's Web browsers to your webpage, if you have one.

If your server is for public use you can configure its minetest.conf file so it automatically registers itself on the public server list at minetest.net[1], this will keep the list informed of your IP current address and website, so having a custom domain name for your sever becomes merely cosmetic.

A domain that points to an address that may change is called "Dynamic DNS", and is what the rest of this page covers.

Step 1: choose a domain

Just like "wiki.minetest.net", your domain will have 3 parts seperated with dots. You'll get to name the left-most part, and the rest you select from an available list. We'll use FreeDNS because they have thousands of free domains to choose from.

The full list you can choose from is here

If we type "minetest" into the search box for that list, we get:

FreeDNS SearchResults.png


In the status column, it shows that one of these domains is "public" and the other is "private". You can use either, the difference is that private domains allow the owner of the domain to delete your subdomain if they find it offensive or slanderous[2].

You don't have to use a domain containing "minetest", there are plenty of other domains available in that list, e.g. openblocks.com and many "Minecraft" ones, but our example Minetest server will be called "Secret Valley" so we will register secretvalley.minetest.land

Clicking on the minetest.land link takes us here

Step 2: Create an account

If you aren't already logged in to FreeDNS, it'll ask you to log in.

Click "Setup an account here" and choose the free option.

Step 3: Registering your subdomain

Once logged in, clicking a domain link brings up this dialog:

FreeDNS AddSubdomain Dialog.png

We can leave Type, TTL, and wildcard as they are, and type in our server name.

Domain names are case insensitive and can only use letters, numbers, and hyphens - they cannot use spaces, so we type in "secretvalley":

FreeDNS SecretvalleyExample Dialog.png

And click "Save!"

Now secretvalley.minetest.land is pointing to my home internet connection, and thus my Secret Valley game server.

That was easy!

Step 4: Keeping your domain updated when your IP address changes.

You want the domain to automatically update if your ISP changes your IP address.

The program you use for this will depend on your operating system. There are many programs available for each OS:

List of programs to keep your domain automatically updated


Step 5: Let your minetest server know its domain name

Edit your server's minetest.conf file, and set address to be your domain:

address = secretvalley.minetest.land

References

  1. See step 5 of Allowing external players to connect for how to configure minetest.conf to automatically register on the public server list.
  2. https://freedns.afraid.org/queue/explanation.php