Networking Fundamentals
What is DNS or domain name system?
$ nslookup google.co.in
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name:
google.co.in
Address: 142.250.183.227 ->IPv4 uses .
Name:
google.co.in
Address: 2404:6800:4007:82a::2003 ->IPv6 uses ::
Key Take Away: DNS resolves a domain name to an IP address.
In Ubuntu Client Machine the first check is done in /etc/hosts file
$ sudo nano /etc/hosts
add a line in this file -> 192.168.1.13 vayu-server
$ ping vayu-server
will automatically resolve to ping 192.168.1.13
Reference used:
https://www.youtube.com/watch?v=vUDJ-CAhnrs
https://www.youtube.com/@StevenGordonAU
Net Stat command to check the connection:
$ netstat -t -n
tcp 0 0 192.168.1.13:2222 192.168.1.13:50552 ESTABLISHED
It has lot of useful features -> explore using $ man netstat