N
N
Name_Zagotovka2021-08-17 03:06:10
Domain Name System
Name_Zagotovka, 2021-08-17 03:06:10

How to register DDNS in hosts?

All the good time of the day.
There is a server 1s. Everything is set up and working.
The server communicates with the world through a dynamic white ip. (After rebooting the Internet session, the IP address changes, but the address is still accessible from the outside).
This problem was solved via DDNS (let's say test.ddns.com).
The database itself is available via dns. However, due to the specifics of 1c, it is necessary to match the DDNS address with the name of the machine (server-1c) on which the server is running.
Of the easy ways:
in hosts, register
the ip address (the same external one) the name of the machine where the server (server-1c) is spinning,
however, after each reboot of the router, you need to rewrite it on all clients
Question:
How to inform the client machine that the PC with the name 'server-1c' is located at the address test.ddns.com
PS just tried to register "test.ddns.com server-1c" in the hosts. doesn't help. apparently (~~ it's written there in the description~~) hosts accepts only addresses of the xx.xx.xx.xx format.
thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Karabanov, 2021-08-17
@karabanov

CNAME
Register a domain ( it's free )
Delegate to your DNS, to Yandex.Connect , or use what the registrar provides to set up a CNAME record.

M
mikes, 2021-08-18
@mikes

stop making infrastructure out of crap and sticks.
buy yourself a static ip and don't worry.
do not expose the 1s server to the Internet, use vpn to access it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question