V
V
vadimeasy2021-11-26 22:15:19
Domain Name System
vadimeasy, 2021-11-26 22:15:19

How to change domain on local server?

Hello, I know that it is possible to open access "outside" for the site's localhost. I want to use a home PC instead of a purchased hosting. Tell me how you can install a purchased domain for him or better even a free one? By free, I mean just take a free one and not register it in any services.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-11-26
@sergey-gornostaev

Tell me how you can install the purchased domain for him

  1. Rent a white IP address from your ISP
  2. Register it in the A-record of the domain zone
  3. Register the domain name in the settings of your web server
  4. Set up port forwarding on your router

By free, I mean just take a free one and not register it in any services.

An unregistered domain name is not served by dns servers. Therefore, each client will have to register a correspondence between this domain name and your IP address in the hosts file. Otherwise, nothing will work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question