- 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 writecomputer.abc
instead ofcomputer.abc.company.com
. (However, you cannot write a dot at the end!) The domains that the computer belongs to are directly defined by thedomain
andsearch
commands in the resolver configuration file. There can be several domains of this kind defined (see Section 1.9).
- 突破平面Photoshop UI界面設(shè)計與制作剖析
- DotNetNuke 5.4 Cookbook
- 數(shù)碼攝影后期零基礎(chǔ)入門教程
- Beginning Swift
- 四時風(fēng)月繪:國風(fēng)水墨CG插畫繪畫技法
- 剪映AI視頻剪輯:AI腳本+AI繪畫+圖文生成+數(shù)字人制作
- Flash CS6標準教程(全視頻微課版)
- 數(shù)碼攝影后期處理秘笈:Photoshop CC專業(yè)調(diào)色(第2版)
- 板繪教室:SAI零基礎(chǔ)日系動漫插畫入門教程
- NHibernate 2 Beginner's Guide
- 輕松玩轉(zhuǎn)3D One AI
- Drupal 6 Content Administration
- 中文版Photoshop CS6經(jīng)典自學(xué)教程
- Microsoft Azure: Enterprise Application Development
- 中文版Photoshop CS6完全自學(xué)手冊(超值版)