he Domain Name System (DNS) is the phonebook of the Internet. Humans access information online through domain names, like nytimes.com or espn.com. Web browsers interact through Internet Protocol (IP) addresses. DNS translates domain names to IP addresses so browsers can load Internet resources. ach ...
he Domain Name System (DNS) is the phonebook of the Internet. Humans access information online through domain names, like nytimes.com or espn.com. Web browsers interact through Internet Protocol (IP) addresses. DNS translates domain names to IP addresses so browsers can load Internet resources. ach device connected to the Internet has a unique IP address which other machines use to find the device. DNS servers eliminate the need for humans to memorize IP addresses such as 192.168.1.1 (in IPv4), or more complex newer alphanumeric IP addresses such as 2400:cb00:2048:1::c629:d7a2 (in IPv6). he process of DNS resolution involves converting a hostname (such as www.example.com) into a computer-friendly IP address (such as 192.168.1.1). An IP address is given to each device on the Internet, and that address is necessary to find the appropriate Internet device - like a street address is used to find a particular home. When a user wants to load a webpage, a translation must occur between what a user types into their web browser (example.com) and the machine-friendly address necessary to locate the example.com webpage.
In order to understand the process behind the DNS resolution, it’s important to learn about the different hardware components a DNS query must pass between. For the web browser, the DNS lookup occurs "behind the scenes" and requires no interaction from the user’s computer apart from the initial request. DNS recursor - The recursor can be thought of as a librarian who is asked to go find a particular book somewhere in a library. The DNS recursor is a server designed to receive queries from client machines through applications such as web browsers. Typically the recursor is then responsible for making additional requests in order to satisfy the client’s DNS query.
Root nameserver - The root server is the first step in translating (resolving) human readable host names into IP addresses. It can be thought of like an index in a library that points to different racks of books - typically it serves as a reference to other more specific locations.
TLD nameserver - The top level domain server (TLD) can be thought of as a specific rack of books in a library. This nameserver is the next step in the search for a specific IP address, and it hosts the last portion of a hostname (In example.com, the TLD server is “com”).
Authoritative nameserver - This final nameserver can be thought of as a dictionary on a rack of books, in which a specific name can be translated into its definition. The authoritative nameserver is the last stop in the nameserver query. If the authoritative name server has access to the requested record, it will return the IP address for the requested hostname back to the DNS Recursor (the librarian) that made the initial request. Both concepts refer to servers (groups of servers) that are integral to the DNS infrastructure, but each performs a different role and lives in different locations inside the pipeline of a DNS query. One way to
Kenapa /etc/hosts
Jumlah host sedikit
Jaringan tidak terhubung ke Internet
/etc/hosts digunakan oleh NIS (pada
Sun)
Tidak semua host pakai UNIX
Top Level Domain &
Subdomain
Known TLD
World
edu : nsf.mit.edu
Com : ibm.com
gov : nasa.gov
mil : navy.mil
net : nsf.net
org : ampr.org
In other countries
jp ; Jepang
nl ; Netherland
au ; Australia
uk ; Inggris
de ; Jerman
th ; Thailand
Domain ID
Top Level Domain:id
Beberapa Sub-Domain
ac.id : Lemb. Pendidikan
go.id : Lemb. Pemerintahan
co.id : Lemb. Komersial
or.id : Lemb. Non Profit
net.id : Network Provider
sch.id : Sekolah
Konfigurasi DNS Server
File-file yang dibutuhkan
/etc/named (executable file)
boot script (default : /etc/named.boot)
zona file
DNS server run sebagai “daemon” proses
Konfigurasi boot script
Directory
Primary
Secondary
Cache
forwarders
Penyimpanan zona file
Server sebagai primary
Server sebagai secondary
Cache only server
Server sebagai forwarder
Konfigurasi Cache-only server
Konfigurasi minimal dari DNS server
Setiap query akan diteruskan ke root
server
format
cache . db.cache
Primary & Secondary Server
Primary server “memelihara” langsung
zona file
Secondary server sebagai “image” dari
primary server
Proses updating dengan “zona transfer”
DNS server dapat merupakan primary
dan secondary dari beberapa domain
Server
bppt.go.id
Server
telkom.go.id
DNS
Server
Server
ee.itb.ac.id
Resolver
answer
query
Reserve Domain Server
Memetakan IP address ke hostname
Diperlukan untuk log file dan security
IP address digunakan sebagai domain
Top Level domain in-addr.arpa
Sub-Domain dibentuk dari IP address
mulai dari Most Significant Digit
Contoh Reverse Domain
ex : Network dengan IP address klas B
167.205.xx.xx mempunyai reverse
domain
205.167.in-addr.arpa
ex : Network dengan IP address klas C
196.3.6.xx mempunyai reverse domain
6.3.196.in-adr.arpa
Deklarasi Reverse Domain
Server pada boot script
Format (sbg primary dan secondary)
primary <rev_domain> zona file
secondary <rev_domain> <server> zona file
Contoh
primary 205.167.in-addr.arpa db.167.205.21
secondary 1.46.202.in -addr.arpa 202.46.1.2 db.202
Standard Resource Record
Start of Authority Record (SOA)
Name Server(NS)
Address Record (A)
Mail Exchanger Record (MX)
Canonical Name Record (CNAME)
Host Information Record (HINFO)
Well Known Services Record (WKS)
Start of Authority (SOA)
Format
[zone] IN SOA origin contact (
serial
refresh
retry
expire
minimum
)
Name Server Record (NS)
Mendeklarasikan DNS server untuk zona
file (Boleh lebih dari satu host)
Format
[domain] IN NS server
Address Record (A)
Mendeklarasikan IP address dari host-
host yang terdapat pada zona file
Format
[host] IN A address
Mail Exchanger Record (MX)
Mendeklarasikan Mail Server untuk
suatu domain ataupun suatu host
Format
[name] IN MX preference host
Canonical Name (CNAME)
Mendeklarasikan alias name untuk
suatu host
Format
nicknameIN CNAME host
Host Information (HINFO)
Mendeklarasikan informasi singkat
tentang hardware dan sistem operasi
dari suatu host
Format
[host] IN HONFO hardware software
Well Known Services (WKS)
Memberikan informasi tentang layanan
yang disediakan oleh suatu host
Format
[host] IN WKS address protocol services
Pointer to Hostname (PTR)
Memberi informasi hostname dari IP
address suatu host
Format
[number_in_Class] IN PTR FQDN
Konfigurasi Cache File
Digunakan untuk mengakses root
server
ex:
.99999999IN NS ns.nic.ddn.mil
ns.nic.ddn.mil IN A 192.112.36.4
Start DNS Server
Di run bila boot script dan zona file
telah dibuat sebelumnya
Run dari Shell
Command
# named -b /etc/named.boot
Konfigurasi Resolver
Bagaimana Client akses DNS server?
File /etc/resolve.conf
Format
domain<domain_name>
server<IP_addr_DNS_Sercer>
ex: domain itb.ac.id
server 167.205.22.123
DNS dan Mail
Bagaimana Electronic Mail
Menggunakan MX Record pada DNS
Server..?
Bagaimana mengirimkan E-mail ke host
yang tidak menjalankan aplikasi Mail
Server
Proses Pengiriman Mail
Remote host akan mengirim pertama
kali ke Mail Server dengan preference
terendah (prioritas tertinggi)
Remote host dengan preference paling
tinggi merupakan prioritas terendah
MX record dapat digunakan untuk Wide
Domain Aliases
Proses Mail
System INMX40mail.bppt.go.id
IN MX 30 gtw.itb.ac.id
IN Mx 20 system.itb.ac.id
Catatan :
Prioritas tertinggi adalah host itu sendiri
Utility nslookup
Untuk mengetahui apakah DNS server
dapat berjalan sebagaiman mestinya ...
Pemeliharaan & Updating DNS
Bagaimana perubahan zona file dapat
diupdate oleh secondary server..?
Tips
Updating SOA diikuti dengan
menambah serial number
Gunakan beberapa secondary server
untuk kehandalan system
Koordinasi dengan Adminintrator DNS
lainnya.
Updating root server