DNS ij½¬ Æ÷ÀÌÁî´×- Ãë¾àÁ¡ ¹ß°ß¿¡ µû¸¥ ±ä±Þ º¸¾ÈÆÐÄ¡ ±Ç°í
vaccineking
2008-07-25
¡á °³ ¿ä
o DNS¿¡¼ »ç¿ëÀÚÀÇ ¿äûÀ» ó¸®ÇÏ´Â °úÁ¤¿¡ 'DNS ij½¬ Æ÷ÀÌÁî´×(Cache Poisoning)'ÀÌ °¡´ÉÇÑ ½Å±Ô º¸¾ÈÃë¾àÁ¡ÀÌ ¹ß°ßµÈ¹Ù, °¢±Þ±â°ü º¸¾È´ã´çÀÚÀÇ ±ä±Þ º¸¿ÏÁ¶Ä¡ ¿ä¸Á
--------------------------------------------------------------------------------
¡á ¿µÇâ
o ÇØÄ¿´Â Ãë¾àÇÑ DNS ½Ã½ºÅÛÀ» Á¤»óÀûÀÎ DNS ¿äû¿¡ ´ëÇØ °¡Â¥·Î ÀÀ´äÅä·Ï Á¶ÀÛ,
»ç¿ëÀÚ°¡ ÀÎÅÍ³Ý Á¢¼Ó½Ã ¾ÇÀÇÀûÀÎ À¥»çÀÌÆ®¿¡ Á¢¼ÓÇÏ°Ô ÇÏ¿© ºñ¹Ð¹øÈ£, À̸ÞÀÏ µî
Áß¿äÀÚ·á ÀýÃë °¡´É
¡á Ãë¾àÇÑ ½Ã½ºÅÛ
o ±¸½Ä ¹öÀüÀÇ BIND ÇÁ·Î±×·¥À» »ç¿ëÇÏ´Â DNS ½Ã½ºÅÛ
* ´ÙÀ½ÀÇ 'Ãë¾à¿©ºÎ ¼öµ¿ È®Àιæ¹ý'¿¡ µû¶ó ÇØ ±â°üÀÇ DNS¸¦ Á¡°Ë ¿ä¸Á
--------------------------------------------------------------------------------
¡á Ãë¾à¿©ºÎ ¼öµ¿ È®Àιæ¹ý
o ´ÙÀ½ ¹æ¹ýÀ¸·Î ÇØ ±â°üÀÇ DNS ½Ã½ºÅÛ¿¡ ´ëÇØ ¼öµ¿À¸·Î Á¡°Ë
* DNS ÇÁ·Î±×·¥ÀÌ ¼³Ä¡µÈ ½Ã½ºÅÛ¿¡¼ 'dig' ¸í·É¾î ÀÌ¿ë
- '$ dig @aaa.bbb.ccc.ddd +short porttest.dns-oarc.net TXT' ¸í·É ÀÔ·Â
* aaa.bbb.ccc.ddd : Á¡°Ë´ë»ó DNS ½Ã½ºÅÛÀÇ domain name ¶Ç´Â IP ÁÖ¼Ò
1) Ãë¾àÇÑ °æ¿ìÀÇ ¸í·É¼öÇà °á°ú
z.y.x.w.v.u.t.s.r.q.p.o.n.m.l.k.j.i.h.g.f.e.d.c.b.a.pt.dns-oarc.net. "aaa.bbb.ccc.ddd is POOR: (¼ýÀÚ) queries in (¼ýÀÚ) seconds from 1 ports with std dev 0.00"
2) Ãë¾àÇÏÁö ¾ÊÀº °æ¿ìÀÇ ¸í·É¼öÇà °á°ú
z.y.x.w.v.u.t.s.r.q.p.o.n.m.l.k.j.i.h.g.f.e.d.c.b.a.pt.dns-oarc.net. "IP-of-GOOD is GOOD: (¼ýÀÚ) queries in (¼ýÀÚ) seconds from 26 ports with std dev 17685.51"
o ¶Ç´Â, 'www.doxpara.com'¿¡ Á¢¼Ó, È¸é ¿ìÃøÀÇ 'Check My DNS' ¹öÆ°À» Ŭ¸¯ÇÏ¿© Á¡°Ë °á°ú¸¦ È®ÀÎ
--------------------------------------------------------------------------------
¡á Á¶Ä¡¹æ¹ý
o »ç¿ëÁßÀÎ DNSº° ÃֽŹöÀüÀÇ BIND ÇÁ·Î±×·¥À¸·Î ¾÷µ¥ÀÌÆ® ½Ç½Ã
o BIND ÇÁ·Î±×·¥ ÃֽŹöÀü ¼³Ä¡Àü ÀÓ½ÃÁ¶Ä¡·Î¼ DNS ½Ã½ºÅÛÀÇ '/etc/named.conf' ÆÄÀÏ¿¡ ¾Æ·¡¿Í °°ÀÌ Ãß°¡ÇÏ¿© Recursive query ¼ºñ½º¸¦ ½Å·ÚÇÒ ¼ö Àִ ȣ½ºÆ®·Î Á¦ÇÑ
acl trust {
192.168.1.0/24;
};
options {
allow-recursion { trust; };
};
* 192.168.1.0/24 : ÇØ ±â°üÀÇ DNS ½Ã½ºÅÛ¿¡ Á¢±ÙÀÌ Çã¿ëµÈ IP ¹üÀ§
|