µî·ÏÀÏ 2006-11-03 11:22:23 Á¶È¸¼ö 3609
Á¦¸ñ °èÁ¤Ãß°¡¸¦ ¾î¶»°Ô Çϳª¿ä?
¾È³çÇϼ¼¿ä.
¿ì¶ß³ÝÀÔ´Ï´Ù.

¾Æ·¡ÀÇ ¼ø¼­¸¦ °¡Áö°í °èÁ¤À» Ãß°¡ÇÏ½Ã¸é µË´Ï´Ù.



1. °èÁ¤Ãß°¡
--------------------------------------------------------------
°èÁ¤Ãß°¡´Â ¾Æ·¡¿Í °°Àº ¸í·ÉÀ¸·Î Ãß°¡ÇÏ½Ã¸é µË´Ï´Ù.

# adduser -g users -d [¼³Ä¡µÇ´Â µð·ºÅ丮] ¾ÆÀ̵ð



2. Æнº¿öµå º¯°æ
--------------------------------------------------------------
À§ ¼³Á¤µÈ °èÁ¤¿¡ Æнº¿öµå¸¦ ¼³Á¤ÇÏ´Â ¸í·É¾îÀÔ´Ï´Ù.

# passwd ¾ÆÀ̵ð


3. ¾ÆÆÄÄ¡ virtual ¼³Á¤
--------------------------------------------------------------

ServerAdmin webmaster@dummy-host2.example.com <---- virtual ¼­¹öÀÇ °ü¸® ¸ÞÀÏÁÖ¼Ò
DocumentRoot /°èÁ¤Àý´ë°æ·Î/public_html <---- °èÁ¤ÀÇ web »óÀÇ root °¡ µÇ´Âµð·ºÅ丮ÀÔ´Ï´Ù.
ServerName dummy-host2.example.com <---- µµ¸ÞÀÎÀÇ hostname ¿¡ ÇØ´çµË´Ï´Ù.
ErrorLog /var/log/httpd/logs/dummy-host2.example.com-error_log <---- Error ¹ß»ý½Ã ·Î±×±â·Ï
CustomLog /var/log/httpd/logs/dummy-host2.example.com-access_log common <---- ±âº» ±â·Ï log



À§ ¼³Á¤ ¼öÁ¤Çϼż­ httpd.conf ¿¡ Ãß°¡ÇÏ½Ã¸é µË´Ï´Ù.


4. ¸ÞÀÏÃß°¡
--------------------------------------------------------------
´ÙÀ½Àº mail Ãß°¡ ºÎºÐÀÔ´Ï´Ù.

/etc/mail/local-host-names <--- ¼ÂÆõǴ µµ¸ÞÀÎÀ» Ãß°¡.
/etc/mail/virtusertable <--- ¿øÇϽô ¸ÞÀÏÀ» °èÁ¤¿¡ ¿¬·ÂµÇµµ·Ï Ãß°¡
ex) webmaster@abc.com foobar
À§ ÆÄÀÏ ¼³Á¤ÈÄ ¾Æ·¡ÀÇ ¸í·É½ÇÇà.
makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable

¸ÞÀϼ­¹ö¸¦ restart ÇÕ´Ï´Ù.
/etc/rc.d/init.d/sendmail restart

5. ³×ÀÓ¼­¹ö Ãß°¡

/etc/named.conf ¸¦ ¾Æ·¡ÀÇ ³»¿ëÀ» Ãß°¡ÇÕ´Ï´Ù.

zone "µµ¸ÞÀÎÀ̸§" IN {
type master;
file "db.µµ¸ÞÀÎÀ̸§";
allow-update { none; };
};


/var/named ³ª /var/named/chroot/var/named µð·ºÅ丮¿¡ db.µµ¸ÞÀγ×ÀÓ À¸·Î zone ÆÄÀÏÀ» »ý¼ºÇÕ´Ï´Ù.
zone ÆÄÀÏÀ» ¾Æ·¡ÀÇ Çü½ÄÀ¸·Î ¸¸µå½Ã¸é µË´Ï´Ù.

#vi /var/named/chroot/var/named/db.µµ¸ÞÀγ×ÀÓ

$TTL 86400
@ IN SOA localhost. root.localhost.(
200607219 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400) ; Minimum
IN NS ns.abc.com. <------------ ±âº» ³×ÀÓ¼­¹ö

@ IN A 192.168.123.200
www IN A 192.168.123.200
ns IN A 192.168.123.200
ftp IN A 192.168.123.200
mail IN A 192.168.123.200
* IN A 192.168.123.200
@ IN MX 10 mail




»ý¼ºÇϽðí rndc ¸í·ÉÀ¸·Î ³×ÀÓ¼­¹ö¸¦ ¸®½ºÅ¸Æ® ÇÕ´Ï´Ù.
# rndc reload


°¨»çÇÕ´Ï´Ù.