Network DNS
Contents
Ping to PC A

Ping to IP
|
|
Ping to Name
|
|
Config /etc/hosts
Private Name
In PC B
|
|
In PC A
Ping to Name
|
|
Append to /etc/hosts
|
|
Ping to Name Again
|
|
Public Domain
Ping to Google
|
|
Append to /etc/hosts
|
|
Ping to Google Again
|
|
Name Resolution
Name Resolution
Below system and hosts, it can make to connect each PC.
But, there are big problem!
If you need to add or change
But, there are big problem!
If you need to add or change
/etc/hosts
, you have to change the /etc/hosts
file each PC.System Diagram

/etc/hosts
|
|
DNS
Domain Name System
I notice to you the problem of Name Resolution System.
DNS
is a solution to manage hosts in a system.DNS Diagram

DNS Server Config
|
|
DNS Client Config
/etc/resolv.conf
|
|
/etc/nsswitch.conf
|
|
|
|
Domain Names
Domain System Example
Request apps.google.com
|
|
DNS Record Types
Type | Description | Example |
---|---|---|
A | IPv4 | 192.168.1.1 |
AAA | IPv6 | 2001:0db8:85a3:0000:0000:8a2e:0370:7334 |
CNAME | Domain Name | test.web-server.com,test.api-server.com |
Tools
nslookup
|
|
|
|
dig
|
|
|
|