¾È³çÇϼ¼¿ä.
´Ù¸§ÀÌ ¾Æ´Ï¶ó »êÀÌ´Ô Ã¥Áß¿¡ named.conf ¼³Á¤Áß.
fowarders ¶ó´Â ¿É¼Ç¿¡ ´ëÇؼ ¹®Àǵ帱·Á±¸¿ä.
bind-9.2.4-16.EL4.i396.rpm ÀÌ ¼³Ä¡µÇ¾î ÀÖ±¸¿ä.(¸®´ª½º ¼³Ä¡½Ã)
½±°ÔÇϱâ À§ÇØ 192.168 °ú °°Àº ip ·Î ±âÀçÇÒ²²¿ä..
ns.abc.co.kr(192.168.1.1) À̶ó´Â ¼¹ö°¡ ÀÖ½À´Ï´Ù.
¿©±â¿¡ µµ¸ÞÀεî·Ï±â°ü¿¡ (nstemp).abc.co.kr ¶ó´Â È£½ºÆ®¸¦ Ãß°¡ÇÏ°í,
nstemp.abc.co.kr -> 192.168.1.2 ·Î ¼³Á¤ÇÏ¿´½À´Ï´Ù.
ns.abc.co.kr -> 192.168.1.1
nstemp.abc.co.kr -> 192.168.1.2
ÀÌ¿Í °°½À´Ï´Ù.
ÀÌ »óÅ¿¡¼
ns.abc.co.kr(192.168.1.1) ¼¹öÀÇ abc.co.kr.zone ¿¡¼ nstemp.abc.co.kr À» A ·¹ÄÚµå·Î
192.168.1.3 À¸·Î °¡°Ô ÇÏ¿´½À´Ï´Ù.
ÇÏÀ§ µµ¸ÞÀÎ Ãß°¡ÇϵíÀÌ.
Àӽü¹ö¿¡ 192.168.1.3 À» Àâ°í,
¿ÜºÎ¿¡¼ nstemp.abc.co.kr À» ping À» ¶§¸®¸é 192.168.1.3 À¸·Î °©´Ï´Ù.
ÀÌ »óÅ¿¡¼,
º°°³ÀÇ linux.com À̶ó´Â µµ¸ÞÀÎÀÇ ³×ÀÓ¼¹ö Á¤º¸¸¦ nstemp.abc.co.kr ·Î ¼³Á¤ÇÏ°í,
# Àӽü¹ö (192.168.1.3)
/etc/named.conf
abc.co.kr À̶ó´Â zone À» ¾È³Ö¾ú½À´Ï´Ù.
¼³Ä¡µÈ »óÅ¿¡¼ ¾Æ¹«°Íµµ ¼öÁ¤¾ÈÇÏ°í »ó´Ü options ¼½¼Ç¿¡ ¾Æ·¡¿Í °°ÀÌ Ãß°¡ÇÏ¿´½À´Ï´Ù.
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
forward only ; <---------------------- Ãß°¡
forwarders { 192.168.1.100; }; <----Ãß°¡
};
¾Æ·¡´Â ¼öÁ¤¾ÈÇÔ.
192.168.1.100 ´Â linux.com µµ¸ÞÀÎÀÇ ·¹ÄÚµåÁ¤º¸°¡ ÀÖ´Â ³×ÀÓ¼¹ö ÀÔ´Ï´Ù.
¿ÜºÎ¿¡¼ linux.com À» nslookup À» Çϸé,
linux.com ?-> nstemp.abc.co.kr(192.168.1.3) -> 192.168.1.100 ¿¡ ÁúÀÇÇÏ¿© °á°ú¸¦
¹Þ¾Æ¿À´Â°Ô ¾ÈµË´Ï´Ù.
nslookup ½Ã ÁúÀǼ¹ö¸¦ nstemp.abc.co.kr ·Î Çسõ°í Çϸé 192.168.1.100 ¿¡ ÀÖ´Â ³»¿ëÀ»
ÀÀ´äÇϴµ¥,
ÀÎÅͳݾ÷üÀÇ ³×ÀÓ¼¹öÀÎ kns.kornet.net µî ±âŸ dns ¿¡ nslookup ¸¦ Çϸé Server failed
°¡ ³ª¿É´Ï´Ù.
*** kns.kornet.net can't find linux.com: Server failed
½ÇÁ¦ µµ¸ÞÀεéÀÇ ·¹ÄÚµåÁ¤º¸¸¦ °¡Áö°í Àִ¼¹ö´Â 192.168.1.100 Àε¥,
192.168.1.3 ÀÌ ¸ðµç ¿äûÀ» ¹Þ¾Æ Áß°èÇÏ´Â ¿ªÇÒÀ» Çغ¸·Á°í Çϴµ¥ ¾ÈµÇ³×¿ä..
¹¹°¡ À߸øµÈ°ÇÁö ¾Ë¼ö ÀÖÀ»±î¿ä??
|