RHEL6/CentOS6�Ǥϡ�single-request-reopen ��ɬ�ܤˤ�������[IPv6]

���Υ���ȥ꡼��ϤƤʥ֥å��ޡ������ɲ�


2012-11-02


������������С��Ȥꤢ���� RHLE6/CentOS6 �ʿͤ� /etc/resolv.conf ��

options single-request-reopen


��񤤤Ƥ������Ȥ����äǤ�(������ʸ���Ǥ��衢ǰ�Τ����

�ʤ�����

RHEL5/CentOS5/Ubuntu 10.04��Linux�Ȥ��Ǥϡ�FQDN �β��򤹤�Ȥ���

Image

  1. DNS����å��奵���Ф� AAAA RR �� Query���ꤲ��
  2. AAAA RR �� Reply �������
  3. DNS����å��奵���Ф� A RR �� Query���ꤲ��
  4. A RR �� Reply �������


�Ȥ�����ư�Ǥ�������RHEL6/CentOS6 �Ǥ�

Image

  1. DNS����å��奵���Ф� A RR �� Query���ꤲ��
  2. DNS����å��奵���Ф� AAAA RR �� Query���ꤲ��
  3. A RR �� Reply �������
  4. AAAA RR �� Reply �������


�Ȥʤ�ޤ���3., 4.�������ؤ���ǽ���Ϥ���ޤ���

�������ޤ��󡪸�̩�ˤϡ�ͷ�٤� RHEL6 �δĶ�����äƤʤ��ä��Τ�̤��ǧ�Ǥ�����Ʊ����ư�ʤϤ�

����ϡ����ηаޤȤ���ͤ���ȡ����褤�����ˤʤä��ȸ��������ʤΤǤ������������꤬���äơ�1., 2. �ǡ�Query ���ꤲ��¦�� source port�ֹ椬Ʊ��ȤʤäƤ��ޤ�(�פϡ�socket ��Ȥ��󤷤Ƥ����

�ǡ��ʤˤ����뤫�Ȥ����ȡ�������� Firewall �ǡ�����Ʊ��ݡ��Ȥ���� Query ��Ʊ��Υ��å����ȸ��ʤ���Τ�����ΤǤ���
��������ȡ��ʤˤ����뤫�Ȥ����ȡ�

Image

  1. DNS����å��奵���Ф� A RR �� Query���ꤲ��
  2. DNS����å��奵���Ф� AAAA RR �� Query���ꤲ��
  3. ���Ȥ��� AAAA RR �� Reply ��������
  4. Firewall ���̿�������ä���Ƚ�Ǥ��ơ����å����� close ����
  5. �Ĥ�� A RR �� Reply �� Firewall �� drop ����롣
  6. A RR �η�̤�������ʤ��ä��Τǡ����٤��̡��� Query���ꤲ��
  7. A RR �� Query ���ꤲ�롣
  8. A RR �� Reply ���֤�ޤ��Ԥġ�
  9. A RR �� Reply �������롣
  10. ����� AAAA RR �� Query���ꤲ��
  11. AAAA RR �� Reply �������롣


����ʴ����ˤʤ�ޤ����ǽ�Ū�ˤ�̾������褵���Τǡ���Ǥ�����Ǥ������ʤ�Ǥ������º� A RR �� Query �����(fallback)����ޤǡ��������٤λ��֤�������ޤ���

������ 5�á������ 5�á�

�Ƕ�Υ����Фϡ������д�Ϣ�Ȥdz�����API��á�����Ȥ�����������ޤ���API �Υ�������ˡ�DNS ������Ƥ����Ȥ����顢�����ٱ䤬���Ѥ��졢����ɥ桼�����δ�����쥹�ݥ󥹤��ٱ�ϡ������ðʾ�ˤʤ뤳�Ȥ⤢��ޤ���

���Τ������ man resolv.conf �˽񤤤Ƥ���ޤ���

     single-request-reopen (since glibc 2.9)
           The resolver uses the same socket for the A and AAAA requests. Some hard-
           ware mistakenly only sends back one reply. When that happens the client
           sytem will sit and wait for the second reply. Turning this option on
           changes this behavior so that if two requests from the same port are not
           handled correctly it will close the socket and open a new one before send-
           ing the second request.


�����ޤǤ狼�äƤ�ʤ顢default �ǡ�socket ���̡��˺�äƤ����Ȼפ��ΤǤ��������ץ����Ǥβ���ȤʤäƤ���褦�Ǥ���

���Ƕ��Ubuntu�Ϥɤ��ʤΤ�����ǧ����Ķ����긵�ˤʤä��Τǡ��狼��ޤ��󤬡��������Ƕ�� glibc �ȤäƤʤ��ä��Ȼפ��Τǡ�����ϵ������ʤ����⡩��

�������ơ����ä���IPv6�Τ���˲������줿��ư����IPv6�˵������뤢�餿����������߽Ф��Ƥ��ޤä��褦�Ǥ���Firewall ����������Ȥ����ä⤢��ޤ������º� Firewall¦�������ѹ��ǡ������ǽ������ǤϤ����Ǥ�����MacOS X 10.8.2 �Ȥ��Ǥϡ�query �� source port �ϡ��̡��ʤΤǡ����������������ޤ���

�Ȥ⤢�졢���٤Ƥοͤ����꤬ȯ������櫓�ǤϤʤ����Ķ���¸�ǤϤ���ޤ�������IPv6̵���ˤ������᤯�ʤä��ץͥ������������������Ƥ��ޤä��Τ��ڤʤ���

�ɵ���2012-11-05 �����ɲá�ʸ��Ĵ�����ޤ�����glibc�ΥС������θ��ڤ������ޤ�����



IPv4/IPv6 meter
����������ɤ�ʣ������Ǥ��ޤ�
ChangeLog�򸡺�
Google
Web www.kunitake.org
�פä����¤��ġĻ��⤢�롢Amazon

���ƥ���