Ishdan maqsad: DNS serverini sozlash ko’nikmalarini hosil qilish.
Ishni bajarish tartibi: Bu amaliy mashg’ulotda yuqorida ko'rsatilgan sxema bo'yicha joylashtirilgan stenddan foydalanamiz.
gw serverini yuqoridagi konfiguratsiyaga muvofiq sozlanadi. Tarmoq raqami X bilan ko'rsatilgan va tizim blokida ko'rsatilgan.
Bizning tarmog'imiz: 192.168.X.0/24 Domen: exampleX.com
Gw uchun IP -manzil: 192.168.X.1
Netmask: 255.255.255.0
Gw uchun xost nomi: gw.exampleX.com
Kompyuterda gw.exampleX.com:
# cat /etc/hosts 127.0.0.1 localhost
192.168.X.1 gw.exampleX.com gw
# cat /etc/resolv.conf search exampleX.com
nameserver 192.168.X.1
# cat /etc/hostname gw
# cat /etc/network/interfaces auto lo
iface lo inet loopback auto eth0 iface eth0 inet static
address 192.168.X.1 netmask 255.255.255.0 auto eth1
iface eth1 inet dhcp # init 6 4. Analogi bo'yicha serverni sozlang:
Server uchun IP -manzil: 192.168.X.2
Netmask: 255.255.255.0
Server uchun xost nomi: server.exampleX.com
Server.exampleX.com kompyuterida (server uchun tarmoq sozlamalarini tekshiring):
# cat /etc/hosts 127.0.0.1 localhost
192.168.X.2 server.exampleX.com server
# cat /etc/resolv.conf search exampleX.com nameserver 192.168.X.1
# cat /etc/hostname server
# cat /etc/network/interfaces auto lo
iface lo inet loopback auto eth0 iface eth0 inet static
address 192.168.X.2 netmask 255.255.255.0
gateway 192.168.X.1
# init 6 ...
# apt-get update Agar kerak bo'lsa, virtual mashinani qayta ishga tushiring va quyidagilarni oching: