Analysis of URL

Don't eat tomatoes 2021-05-03 19:16:49
analysis url


1. URL Which parts are included , What are the functions of each part ?

A complete URL= agreement + Domain name or IP+ Port number + route + Query string + Anchor point .

give an example :www.baidu.com/s?wd=hello&…

  • “https:” For the part of the agreement , It shows which protocol the browser must use , The URL Indicates that the page uses HTTPS agreement .
  • www.baidu.com” For the domain part , It indicates which is being requested Web The server , One URL in , You can also use IP Address .
  • this URL The port is not specified in , because HTTPS Default port 443.
  • “/s” It's the path part , Indicates the path of the resource on the network server .
  • “?wd=hello&rsv_spt=1” For the query string , Multiple parameters can be allowed in the query string , Between parameters “&” As a separator . The query string is an additional parameter provided to the web server .
  • “#5” It's the anchor point , Anchor points represent one of the resources “ Bookmarks ”, Show the browser where “ Bookmark ” The orientation of the content of the location .

2. DNS What is the role of ,nslookup How to use the order ?

DNS (Domain Name System) The domain name system , It's a hierarchy 、 Decentralized Internet Connect resource naming system .DNS Maintain a domain name and corresponding resources, such as IP List of addresses .

DNS The most prominent function is to make the domain name easy to remember ( for example mozilla.org) Translation becomes Digital IP Address ( for example 151,106,5,172). This one goes from domain name to IP The mapping process of address is called DNS Inquire about (DNS lookup), With the corresponding ,DNS Reverse query (rDNS) Used to find and IP The domain name corresponding to the address .

nslookup command Used to query DNS The record of , Check whether domain name resolution is normal , It is used to diagnose network problems when the network fails . Its usage is as follows :

  • Direct inquiry nslookup domain [dns-server]
  • Query other records nslookup -qt=type domain [dns-server]

among ,type It can be of the following types :

  1. A Address record
  2. AAAA Address record
  3. AFSDB Andrew File system database server records
  4. ATMA ATM Address record
  5. CNAME Alias record
  6. HINFO Hardware configuration record , Include CPU、 Operating system information
  7. ISDN The domain name corresponds to ISDN number
  8. MB The server where the specified mailbox is stored
  9. MG Mail group records
  10. MINFO Information record of mail group and mailbox
  11. MR The email record of the change of name
  12. MX Mail server records
  13. NS Name server record
  14. PTR Reverse recording
  15. RP The person in charge records
  16. RT Route penetration record
  17. SRV TCP Server information records
  18. TXT The text information corresponding to the domain name
  19. X25 The domain name corresponds to X.25 Address record
  • Search for more specific information nslookup –d [ The other parameters ] domain [dns-server]

Just at the time of inquiry , add -d Parameters , You can query the domain name cache .

3. IP What is the role of ,ping How to use the order ?

IP Address ( English :IP Address, Full name Internet Protocol Address), Internet protocol address 、 Internet protocol address . When the device is connected to the network , The device will be assigned a IP Address , Used as a sign . adopt IP Address , Devices can communicate with each other , without IP Address , We will not be able to know which device is the sender , There is no way to know which recipient is .IP Address has two main functions : Identify the device or network and Addressing ( English :location addressing).

ping The command is used to detect the host .

perform ping Command will use ICMP Transfer protocol , Send a message asking for a response , If there is no problem with the network function of the remote host , They'll respond to the message , So we know that the host is working normally .

grammar : ping [-dfnqrRv][-c< Number of completions >][-i< Seconds apart >][-I< Network interface >][-l< Load ahead >][-p< Template Styles >][-s< Packet size >][-t< Survival value >][ Host name or IP Address ]

4. What is domain name , What kinds of domain names are there ?

Domain name ( English :Domain Name, abbreviation :Domain), Hereinafter referred to as a domain name 、 domain , Is the name of a computer or computer group on the Internet consisting of a string of dot separated characters , Used to identify the electronic orientation of the computer during data transmission . Domain name can be said to be a IP Address , The purpose is to remember the latter .

There are three main categories of domain names :

  1. The first category is generic top-level domain names (General top Level Domain, abbreviation gTLD)
  2. The second category is country and region code top-level domain names (country Code Top Level Domain, abbreviation ccTLD)
  3. The third kind is 2011 year “ New general top level domain name ” New general top-level domain names since the implementation of the plan (New Generic Top-level Domain, abbreviation NEW gTLD)
版权声明
本文为[Don't eat tomatoes]所创,转载请带上原文链接,感谢
https://qdmana.com/2021/05/20210503191542459s.html

  1. CSS layout
  2. Application scenario explanation of Vue dynamic component
  3. Redux learning notes 04 -- using multiple reducers to manage data
  4. After three months of typescript writing, what have I learned?
  5. Node family - what is a callback?
  6. React -- a simple implementation of render & create element
  7. JS learning simple usage of jquery
  8. Seamless love
  9. 小白前端入门笔记(12),设置哑链接
  10. Small white front-end entry notes (12), set dumb links
  11. Vue2. X opens composition API and TSX
  12. Interview record and thinking of social recruitment for one and a half years (Alibaba, Tencent, baidu offer)
  13. Flex learning notes
  14. The most essential closure article in the eastern hemisphere
  15. 2021-05-03 hot news
  16. Sword finger offer -- reverse order pair in array (JS Implementation)
  17. Working process of scaffold
  18. Use decorator mode to strengthen your fetch
  19. [JS] scope (Introduction)
  20. Employment information statistics network (interface document)
  21. Analysis of MVC
  22. [middle stage] please stay and join me in the backstage
  23. Understanding front end garbage collection
  24. [continuous update] front end special style implementation
  25. Flutter product analysis and package reduction scheme
  26. XPath positioning
  27. 前端开发css中的flex布局的使用
  28. The use of flex layout in front end development CSS
  29. JQuery核心函数和静态方法
  30. JQuery core functions and static methods
  31. Node family - understanding of blocking and non blocking
  32. 热点微前端Microfrontend的讨论:谷歌AdWords是真实的微前端
  33. Vue source code analysis (2) initproxy initialization proxy
  34. What's TM called react diff
  35. Summary of common front end data structure
  36. Useeffect in hooks
  37. [encapsulation 02 design pattern] Command pattern, share meta pattern, combination pattern, proxy pattern, strategy pattern
  38. Front end notes: virtual Dom and diff of vue2. X
  39. The best code scanning plug-in of flutter
  40. The simplest plug-in for rights management of flutter
  41. 21. Object oriented foundation "problems and solutions of object traversal"
  42. Discussion on hot micro front end: Google AdWords is a real micro front end
  43. Usecallback and usememo for real performance optimization
  44. 【前端圭臬】十一:从规范看 JavaScript 执行上下文(下)
  45. [front end standard] 11: Javascript execution context from the perspective of specification (2)
  46. Hexagonal六角形架构ReactJS的实现方式 - Janos Pasztor
  47. Transaction of spring's reactive / imperative relational database
  48. The implementation of hexagonal hexagonal reactjs Janos pasztor
  49. HTTP状态码:402 Payment Required需要付款 - mozilla
  50. HTTP status code: 402 payment required - Mozilla
  51. Factory mode, constructor mode and prototype mode
  52. Build the scaffold of react project from scratch (Series 1: encapsulating a request method with cache function based on Axios)
  53. Cocos Quick Start Guide
  54. Comparison of three default configurations of webpack5 modes
  55. A case study of the combination of flutter WebView and Vue
  56. CSS: BFC and IFC
  57. A common error report and solution in Vue combat
  58. JS: this point
  59. JS: prototype chain
  60. JavaScript series -- promise, generator, async and await