What parts do urls contain

The full name of a URL is Uniform Resource Locator, which includes the protocol, domain name, path, query parameters, and anchor point

What is a domain name

A Domain Name is a nickname for an IP address, one Domain Name can correspond to different IP addresses, this is called load balancing in case one machine fails, one IP address can correspond to different Domain names,

Which categories of domain names

  • .com is a top-level domain name
  • .cn is China
  • .org non-profit organization
  • .NET Network services

What is the function of IP? How do I use the ping command

The Internet Protocol (IP) can agree on two things:

  1. How do you locate a device, whether it’s a phone or a camera or router, with IP

  2. How to Encapsulate Packets

Use ipconfig to get the IP address, or ip138.com

Both 127.0.0.1 and localhost indicate the local machine

  • How do I use the ping command?

Recently the author of Ping wrote an article about Ping

ping baidu.com
Copy the code

What is the DNS function? How do I use the nslookup command

The Domain Name System (DNS) is a hierarchical and decentralized naming System for Internet connection resources

Command:

nslookup baidu.com
Copy the code


Use curl to download images

Using the curl command, you can complete all the basic functions of Chrome

curl xxxx.jpg > 1.jpg