<-
Apache > HTTP Server > Documentation > Version 2.4

DNS�� ����ġ�� ���õ� ����

������ ���:  en  |  fr  |  ja  |  ko  |  tr 

�� ������ �ֽ��� ������ �ƴմϴ�. �ֱٿ� ����� ������ ���� ������ �����ϼ���.

�� ������ �� �������� ����� �� �ִ�. ����ġ�� ���������� ������ DNS�� ���������ʵ��� �϶�. ����ġ�� ���������� �дµ� DNS�� �ʿ��ϴٸ� ������ �ŷڼ� ���� (������ �ȵ� ���� �ִ�) Ȥ�� ���񽺰ź� ���ݰ� (����ڰ� �ٸ� ����ڿ� ���� ������ ����ä�� ���� �����Ͽ�) ���񽺵���(theft of service) ���ݿ� �ô޸� �� �ִ�.

Support Apache!

����

top

������ ����

<VirtualHost www.abc.dom>
ServerAdmin [email protected]
DocumentRoot /www/abc
</VirtualHost>

����ġ�� ���������� �����ϱ����ؼ��� �� ����ȣ��Ʈ�� ���� �ΰ��� ������ ���������� �ʿ��ϴ�. �� ������ ServerName�� ������ ��ٸ��� ������ �ּ� �Ѱ��� IP �ּ��̴�. �� ���� IP �ּҰ� ���⶧����, ����ġ�� DNS�� ����Ͽ� www.abc.dom�� �ּҸ� ã�ƾ� �Ѵ�. ������ ���������� ������ � ���������� DNS�� ����� �� ���ٸ� ����ȣ��Ʈ�� ���� �� ����. �� ����ȣ��Ʈ�� ��û�� ������ �� ����. (����ġ 1.2 ���� ���������� ������ ������ ���õ� ���Ѵ�.)

www.abc.dom�� �ּҰ� 192.0.2.1�̶�� ��������. �׸��� ���� ������ ����:

<VirtualHost 192.0.2.1>
ServerAdmin [email protected]
DocumentRoot /www/abc
</VirtualHost>

���� ����ġ�� �� ����ȣ��Ʈ�� ServerName�� ã������ ��DNS�� ����ؾ� �Ѵ�. ��ã�Ⱑ �����ϸ� ����ġ�� ����ȣ��Ʈ�� �κ������� ����. (����ġ 1.2 ���� ���������� ������ ������ ���õ� ���Ѵ�.) ��, �� ��� �̸���� ����ȣ��Ʈ��� ����ȣ��Ʈ�� ������ ���������ʰ�, ip����̶�� ��κ� �����Ѵ�. �׷��� ����ġ�� �������� �����Ͽ� ������ ��ü URL�� ������ �Ѵٸ� �������� URL�� ������ ���Ѵ�.

�Ʒ� ��� �� �ΰ��� ������ ����.

<VirtualHost 192.0.2.1>
ServerName www.abc.dom
ServerAdmin [email protected]
DocumentRoot /www/abc
</VirtualHost>

top

���񽺰ź� (Denial of Service)

(�ּ���) �ΰ��� ������ ���񽺰źΰ� �߻��� �� �ִ�. ����ġ 1.2 ���� ������ ��� � ����ȣ��Ʈ������ ������ ���� �� DNS �˻��� �����ϸ� ������ �������� �ʴ´�. DNS�� ����� ���� ���� ������ ���� �ִ�. ���� ���, abc.dom�� ���� ����Ʈ�̰� ������ �ڽ��� DNS�� �����Ѵٸ�, www.abc.dom ���ڵ带 ����⸸ �ص� (1.2 ����) ������ �������� ���Ѵ�.

�ξ� �� ��Ȱ�� ����� �ִ�. ���� ������ ���캸��:

<VirtualHost www.abc.dom>
  ServerAdmin [email protected]
  DocumentRoot /www/abc
</VirtualHost>

<VirtualHost www.def.dom>
  ServerAdmin [email protected]
  DocumentRoot /www/def
</VirtualHost>

����� www.abc.dom�� 192.0.2.1, www.def.dom�� 192.0.2.2�� �Ҵ��ߴٰ� ����. ��, def.dom�� ��ü DNS�� ����Ѵٰ� ��������. �� ������ �Բ� def.dom�� abc.dom���� ���� ��� ����� ����ç �� �ִ� ��ҿ� �ξ���. �׷��ٸ� �׵��� www.def.dom�� 192.0.2.1�� �����ϱ⸸ �ϸ� �ȴ�. �׵��� ��ü DNS�� ����ϱ⶧���� ����� �׵��� ���ϴµ��� www.def.dom ���ڵ带 �����ϴ� ���� ���� �� ����.

(����ڰ� http://www.abc.dom/whatever ������ URL�� �Է��ϴ� ��츦 �����Ͽ�) 192.0.2.1�� ���� ��� ��û�� def.dom ����ȣ��Ʈ�� �����ϰ� �ȴ�. �� �̷� ���� �Ͼ���� �����Ϸ��� ����ġ�� ��� ����ȣ��Ʈ�� ���� ��û�� ó���ϴ����� ���� ������ �ʿ��ϴ�. ������ �밭 �������ִ�.

top

"�ּ���" �ּ�

����ġ 1.1���� �̸���� ����ȣ��Ʈ ������ ���ԵǾ��⶧���� ����ġ�� �������� �����ϴ� ȣ��Ʈ�� IP �ּ�(��)�� �� �ʿ䰡 �����. �� �ּҴ� (�ִٸ�) ���� ServerName Ȥ�� C �Լ� gethostname���� (����������Ʈ�� "hostname"�� �Է��������� ���� ���) ��´�. �׷��� �� �ּҷ� DNS �˻��� �Ѵ�. ���� �� �˻��� ���� �� ����.

DNS ������ �׾ �� �˻��� ������ �� ���ٸ� /etc/hosts�� ȣ��Ʈ���� ������� �� �ִ�. (��ǻ�Ͱ� ���������� ���õǾ��ٸ� �Ƹ� �̹� ������� ���̴�.) �׸��� DNS�� �����ϸ� ������ /etc/hosts�� ����ϴ��� Ȯ���϶�. ����ϴ� �ü���� ���� /etc/resolv.conf Ȥ�� /etc/nsswitch.conf�� �����ϸ� �� ���̴�.

������ � ���������� DNS�� �˻��ϸ� �ȵȴٸ� HOSTRESORDER ȯ�溯���� "local"�� �����ϰ� ����ġ�� ������ �� �ִ�. mod_env�� ����Ͽ� ȯ���� �������� �ʴ´ٸ� �� ȯ�溯���� CGI���� ������ �ش�. �ü���� manpage�� FAQ�� �����ϴ� ���� ����.

top

�� ������ ���ϱ����� ��

top

�η�: �����δ�

DNS�� ���õ� ��Ȳ�� �ſ� �ٶ������� ���ϴ�. ����ġ 1.2���� �츮�� DNS�� ������ ��쿡�� �ּ��� ������ �������� ��������� ����� ������. ��·�� �������Ͽ� ���� IP �ּҸ� �䱸�ϴ� ���� ��ȣ�� �ٽ� �����ؾ��� ���� ���ͳݿ� �ſ� �ٶ������� ���ϴ�.

������ ������ ���񽺵��� ������ ���� �Ѱ��� ����� �˻��� IP �ּҿ� �ٽ� ��DNS �˻��� �Ͽ� �� �̸��� ���ϴ� ���̴�. ���� �ٸ� ��� ����ȣ��Ʈ�� �������� ���� �� �ִ�. �� ����� ��DNS�� �ùٷ� �����Ǿ� �Ѵ�. (FTP ������ TCP wrapper�� "�ߺ�-��" DNS �˻��� ���� ����ϱ⶧���� ��κ��� �����ڿ��� �ͼ��� ���̴�.)

��·�� IP �ּҸ� ������������� DNS�� ������ ��� ����ȣ��Ʈ �������� ���� �� �ְ� ������ �� ����. ������ �Ϻθ� �����ϴ� �Ͱ� ���� �κ����� �ذ�å�� ������ ��ü�� ���������ʴ� �ͺ��� �� ���� ���� �ִ�.

HTTP/1.1�� ���԰� �������� ���Ͻð� Host ����� ������ ���������Ƿ� IP��� ����ȣ��Ʈ�� ������ ��������ʴ� ���� �������� ���̴�. �׷��� �������� �����߿��� DNS �˻��� �� �ʿ䰡 ��������. �׷��� 1997�� 3������ �߿��� �������� ������ ������ �̸���� ����ȣ��Ʈ�� �θ� ������ �ʾҴ�.

������ ���:  en  |  fr  |  ja  |  ko  |  tr 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.