Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Principle of short domain name

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

In a recent discussion, we occasionally talked about short domain names. As to whether short domain names need DNS resolution, I was stunned for a moment. It took a few minutes to get to know it in the evening.

First of all, short domain names still follow the standard format of URL, that is, schema+host+path. Schema has nothing to say, the host part is still going back to their own homes and looking for their own mothers. For example, t.cn belongs to Sina and tb.cn belongs to Ali (in other words, it is hard enough for Sina to grab the domain name t.cn). This part must require DNS parsing. Access the short domain name after clearing the DNS cache. If you grab the package, you can see:

On the other hand, the implementation of the path part is different from each other. In general, the original longer domain name needs to be compressed to 5-8 characters. This involves the question of whether the domain name will be repeated after it is shortened. Take compressing to 6 characters as an example, a-zA-Z0-9 has a total of 62 possibilities, then the combination of 6 characters is 62 ^ 6, about 56.8 billion, and the probability of repetition is relatively small. The compression algorithm is not listed for the time being.

After receiving a request for a short domain name, each short domain name server returns the original long domain name to the client in the way of 302 temporary redirection, as shown below:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report