�C���^�[�l�b�g�E�h���C��

IP �A�h���X�ƃz�X�g���̊֌W

/etc/hosts

IP�A�h���X �z�X�g�� ��񋓁B

NIS: Network Information Service

IP�A�h���X �z�X�g�� �̃f�[�^�x�[�X���l�b�g���[�N�Œ񋟁B(��{�I�ɒP�ƃl�b�g���[�N��)

DNS: Domain Name System

IP�A�h���X �z�X�g�� �{�d�q���[���̃��[�e�B���O���̕��U�f�[�^�x�[�X
[�A�v���P�[�V����] -> [���]���o (resolver)] -> [DNS]
[Top Level Domain Server] -> -> [�e�h���C���� Name Server]
RFC1034, RFC1035

�h���C���̊K�w

.(dot) �ŏI��銮�S�ȃh���C�����̋L�q ... Fully Qualified Domain Name (FQDN)
3������ generic Top Level Domain (gTLD) ...
�h���C������
com���Ƒg�D
edu����@��
gov���{�@��
int���ۋ@��
mil�ČR
net�l�b�g���[�N
org���̑��̑g�D

2�����̍�(�n��)�h���C�� (ISO3166)

DNS�c���[�̃T�u�c���[���]�[���ƌĂԁBDNS �̓]�[���ɕ����ĊǗ������B���̃]�[���� �l�[���T�[�o�[�� 1��(Primary) �� 2��(Secondary) ������B DNS���b�Z�[�W�`��
0123
0123456789 0123456789 0123456789 01
16 bit ���ʎq 16 bit �t���O
16 bit ���␔ 16 bit �� RR ��
16 bit ���� RR �� 16 bit �lj� RR ��
����
��(�•ϒ�)
����(�•ϒ�)
�lj����(�•ϒ�)

�t���O�E�t�B�[���h
01
0123456789 012345
QR �I�v�R�[�h AATCRDRA 0record

QR
0=�Ɖ�A1=����
�I�v�R�[�h
0=�W���Ɖ�A1=�t�Ɖ�A2=�T�[�o�[�X�e�[�^�X�v��
AA
1=���Ђ����(Authoritative Answer)
TC
1=�s���S(������UDP�ʼn”\��512�o�C�g�𒴂��Ă���)
RD
�ċA�Ɖ��v��(<->�����Ɖ�)
RA
�ċA�Ɖ�”\
record
0=�G���[�����A3=�l�[���G���[

�Ɖ� ... ���␔=1 ���̑�=0
���� ... �񓚐�=�Œ�1

����t�B�[���h �Ɖ ... postman.is.kochi-u.ac.jp. -> (7)postman(2)is(7)kochi-u(2)ac(2)jp(0) �Ɖ�^�C�v ...
���O���l����
A1IP�A�h���X
NS2�l�[���T�[�o�[
CNAME5���(�ʖ�)
PTR12�|�C���^���R�[�h
HINFO13�z�X�g���
MX15���[���������R�[�h
AXFR252�]�[���]���̗v��
ANY255�S���R�[�h�̗v��
�������b�Z�[�W�̃��\�[�X���R�[�h(RR)
0123
0123456789 0123456789 0123456789 01
�h���C����
�^�C�v �N���X
��������
���\�[�X�f�[�^�� ���\�[�X�f�[�^
���\�[�X�f�[�^(����)