- Get link
- X
- Other Apps
The Net ID is used to identify the network, while the Host ID is used to identify a host in the network
IPs
IPv4
The Net ID is used to identify the network, while the Host ID is used to identify a host in the network.
In Class D information is broadcast to multiple computers simultaneously.
Class A
Class B
Class C
The first three bits of the first octet are set to binary 110, so almost 2.1 million (21-bits) Class C networks are available. The first octet of a Class C address has values from 192 to 223. Each Class C network can support up to 256 (8-bits) unique hosts. The range of host addresses is from 192.0.0.0 to 223.255.255.255.
IP Assignment
IP Name Resolution
$ hostname
Shows the system's hostname
$ hostname [argument]
Changes the system's hostname. Only upon root permission.
$ host [hostname]
or
$ nslookup [hostname]
or
$ dig [hostname]
Show the IP of the hostname and other info depending on the options entered
The IP of the machine is always 127.0.0.1
Key files:
/etc/resolf.conf
/etc/hosts
DNS: how it works
- Your browser looks at the local cache memory to resolve the domain, that's finding the IP related to the website you want to visit
- If the IP is not present in the local cache memory, your computer sends an enquiry to the Resolver Server, which is your Internet Service Provider (ISP)
- The Resolver looks at its own cache to find that IP.
- If the Resolver can't find the IP, it sends an enquiry to the Root Server
- The Root Server doesn't have a cache to resolve the IP. Instead, it has a list of Top Level Domain Servers (TLD Server) which can know how to resolve the domain based on its Top Level Domain: .com, .org, .net etc. And provides the Resolver with the right one to address to.
- The Resolver asks the TLD Server provided by the Root Server to resolve the domain name
- If the TLD Server can't find the IP, it redirects the Resolver to an Authoritative Name Server, which is the final authority
- The Authoritative Name Servers know everything about that domain, including the IP. It will provide the Resolver with the IP.
Network Manager
- $ sudo systemctl restart NetworkManager
- $ sudo systemctl restart network
- $ sudo service NetworkManager restart
- $ sudo service network restart
Comments
Post a Comment