D
D
Danil Tunev2018-05-07 17:42:56
Domain Name System
Danil Tunev, 2018-05-07 17:42:56

Website transition to https. dns hosting?

Hello, due to my activity or inaction, I can’t figure out how, when entering “zzz.ru” (let’s say my domain) into the address bar, the client was directed by some force to the server port at number-443 instead of 80? I own dns-hosting, what-how to register there? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
lehha, 2018-05-07
@lada-guy

In DNS, this cannot be done.
It is necessary to issue a tricky header when opening the https version of the site:
Strict-Transport-Security: max-age=31536000; includeSubDomains
so that this user's browser remembers to only visit https.
You can also add the domain to the Predefined list of HSTS sites that must be opened exclusively via https. This list is downloaded by browsers and used at work, use the header:
Strict-Transport-Security: max-age=31536000; preload
or here: https://hstspreload.org/
Powered by Chromium engines, other browsers (sort of) don't use it.

R
Ruslan Fedoseev, 2018-05-07
@martin74ua

no power.
on your hosting there is a site zzz.ru and there is a site https://zzz.ru
on the site zzz.ru it is said that everything is redirected to https://zzz.ru
to https://zzz.ru an additional hsts header is given, which forces the client browser to remember that https is there.
As a result, the first time the client browser gets to the http version, from there it is redirected to https, and its browser remembers that it is necessary to immediately go to https.
And the task of the DNS is to give the IP address by the domain name where you need to connect. All.

A
Alexander Karabanov, 2018-05-08
@karabanov

This is done by the http server by means of a 301 redirect to the https version of the site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question