www.sample-test.com
into the browser, the following processes occur:
1. A lookup is performed for A or AAAA records for www.sample-test.com
.
2. A connection to http://www.sample-test.com
is made, which results in a redirect to https://www.sample-test.com
.
3. A TLS connection to https://www.sample-test.com
is established, which may be upgraded to HTTP/3 over the Alt-Svc header
These three steps can add significant latency due to the multiple round trips required to establish the optimal connection type with the web server. These steps also pose a security risk, as they create an opportunity to inject malicious ads or captive portals during the upgrade from HTTP to HTTPS.
sample-test.com
as shown below:
www.sample-test.com
is the domain name.1800
is the Time To Live (TTL).IN
represents the class.HTTPS
signifies the record type.1
is the priority, i.e., the number in the queue..
stands for the host if it is the same as the domain name.alpn=h3,h3-29,h2
specifies the application protocol versions.ipv4hint=1.2.3.4,9.8.7.6
specifies IPv4 addresses (this is optional.)ipv6hint=2001:db8:3333:4444:5555:6666:7777:8888,2001:db8:3333:4444:CCCC:DDDD:EEEE:FFFF
specifies IPv6 addresses (this is also optional.)https://sample-test.com
. This includes:
www
.
5. (Optional) TTL. Leave empty or fill with a sensible value. For testing, 300 seconds is acceptable, but for production, consider a higher value like 1800 or more. This ensures that the records do not expire too quickly and that recursive name servers can cache them effectively.
6. Priority. Set the priority for the records. Common values are 1, 2, 3, or 10, 20, or 30. This setting is used if multiple HTTPS records are available for the same name.
7. TargetName. Type a valid domain name or leave it as the .
sign.
8. Select the alpn
attributes of the HTTPS record from the list. The alpn
attribute is often used by browsers to recognize protocols supported by your web server.
9. Select or type the relevant values, such as https/1.1
, http/2
, http/3
, or others. You can choose several values from the list.
10. Select the ipv4hint
or ipv6hint
. These attributes are helpful because browsers do not need to perform additional DNS lookups for your web servers’ IP addresses.
11. Type the IP address.
12. Click Add.
After configuration, the record should look something like this: