官术网_书友最值得收藏!

  • DNS in Action
  • Alena Kabelova, Libor Dostalek
  • 390字
  • 2021-04-29 19:11:16

1.2 Name Syntax

Names are listed in a dot notation (for example, abc.head.company.com). Names have the following general syntax:

string.string.string ………string.

where the first string is a computer name, followed by the name of the lowest inserted domain, then the name of a higher domain, and so on. For unambiguousness, a dot expressing the root domain is also listed at the end.

The entire name can have a maximum of 255 characters. An individual string can have a maximum of 63 characters. The string can consist of letters, numbers, and hyphens. A hyphen cannot be at the beginning or at the end of a string. There are also extensions specifying a richer repertoire of characters that can be used to create names. However, we usually avoid these additional characters because they are not supported by all applications.

Both lower and upper case letters can be used, but this is not so easy. From the point of view of saving and processing in the DNS database, lower and upper case letters are not differentiated. In other words, the name newyork.com will be saved in the same place in a DNS database as NewYork.com or NEWYORK.com. Therefore, when translating a name to an IP address, it does not matter whether the user enters upper or lower case letters. However, the name is saved in the database in upper and lower case letters; so if NewYork.com was saved in the database, then during a query, the database will return "NewYork.com.". The final dot is part of the name.

In some cases, the part of the name on the right can be omitted. We can almost always leave out the last part of the domain name in application programs. In databases describing domains the situation is more complicated:

  • It is almost always possible to omit the last dot.
  • It is usually possible to omit the end of the name, which is identical to the name of the domain, on computers inside the domain. For example, inside the company.com domain it is possible to just write computer.abc instead of computer.abc.company.com. (However, you cannot write a dot at the end!) The domains that the computer belongs to are directly defined by the domain and search commands in the resolver configuration file. There can be several domains of this kind defined (see Section 1.9).
主站蜘蛛池模板: 乡宁县| 岑溪市| 象山县| 四川省| 瓮安县| 托克逊县| 涪陵区| 汉中市| 石门县| 青田县| 西盟| 霞浦县| 德令哈市| 义马市| 天全县| 涿鹿县| 大悟县| 嘉义县| 邳州市| 奉节县| 视频| 安达市| 遂川县| 永靖县| 沁源县| 彰武县| 洪雅县| 个旧市| 成安县| 大连市| 彭水| 舒兰市| 武邑县| 双江| 台中市| 巧家县| 达孜县| 大关县| 遂川县| 游戏| 前郭尔|