이 예에서는 일반적인 DDNS 구성을 설정하는 방법에 대해 설명합니다.
가정:
이 DDNS 구성 예에는 다음과 같은 가정이 적용됩니다.
SP가 있는 네트워크에서 DNS와 DHCP를 둘 다 처리하는 단일 서버입니다.
SP 네트워크 주소는 192.168.1.0입니다.
DHCP/DNS 서버 주소는 192.168.1.2입니다.
SP 및 기타 클라이언트에 주소를 제공하는 풀로 사용되는 IP 주소 범위는 192.168.1.100~192.168.1.199입니다.
도메인 이름은 example.com입니다.
기존 DNS 또는 DHCP 구성이 없습니다. 있다면 이 예에서 .conf 파일을 지침으로 사용하여 기존 구성을 업데이트합니다.
사이트별 수정 사항과 함께 여기에 제공된 다음과 같은 단계 및 샘플 파일을 사용하여 고유의 DDNS 구성을 설정할 수 있습니다.
dnsutils 패키지를 설치하면 dig, nslookup 및 기타 유용한 도구에 액세스할 수 있습니다.
options { directory "/var/cache/bind"; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; }; // prime the server with knowledge of the root servers zone "." { type hint; file "/etc/bind/db.root"; }; // be authoritative for the localhost forward and reverse zones, // and for broadcast zones as per RFC 1912 zone "localhost" { type master; file "/etc/bind/db.local"; }; zone "127.in-addr.arpa" { type master; file "/etc/bind/db.127"; }; zone "0.in-addr.arpa" { type master; file "/etc/bind/db.0"; }; zone "255.in-addr.arpa" { type master; file "/etc/bind/db.255"; }; // additions to named.conf to support DDNS updates from dhcp server key server.example.com { algorithm HMAC-MD5; secret "your-key-from-step-2-here" }; zone "example.com" { type master; file "/etc/bind/db.example.com"; allow-update { key server.example.com; }; }; zone "1.168.192.in-addr.arpa" { type master; file "/etc/bind/db.example.rev"; allow-update { key server.example.com; }; };
빈 영역 파일의 이름은 /etc/bind/db.example.com 및 /etc/bind/db.example.rev여야 합니다.
배치에서 제공하는 db.empty 파일을 복사하기만 해도 됩니다. DNS 서버에서 이러한 파일을 자동으로 업데이트합니다.
ddns-update-style interim; ddns-updates on; server-identifier server; ddns-domainname "example.com."; ignore client-updates; key server.example.com { algorithm hmac-md5; secret your-key-from-step-2-here; } zone example.com. { primary 127.0.0.1; key server.example.com; } zone 1.168.192.in-addr.arpa. { primary 127.0.0.1; key server.example.com; } default-lease-time 600; max-lease-time 7200; authoritative; log-facility local7; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.100 192.168.1.199; option domain-name-servers 192.168.1.2; }
서버를 실행하면 DHCP에 대해 구성된 새로운 Oracle ILOM SP 전원이 켜질 때 해당 호스트 이름을 사용하여 자동으로 액세스할 수 있습니다. 필요에 따라 로그 파일, dig, nslookup 및 기타 디버그용 유틸리티를 사용합니다.
이 예에 사용된 Linux DHCP 및 DNS 서버에 대한 자세한 내용은 http://www.isc.org/에서 Internet Systems Consortium 웹 사이트를 참조하십시오.