[server 설정]
vi /etc/named.conf
...
zone "scbyun.com" IN {
type master;
file "/var/named/masters/scbyun.com-zone";
allow-update { 192.168.0.2.; }; //dynamic update clinet : 192.168.0.2
};
...
[dynamic update clinet]
$ nsupdate
> update add adfsdf.scbyun.com 60 IN A 100.100.100.101
> show
Outgoing update query:
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: 0
;; flags: ; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; UPDATE SECTION:
adfsdf.scbyun.com. 60 IN A 100.100.100.101
> send
# dig netpia.scbyun.com
; <<>> DiG 9.6.1-P2_NLIA_NS_091125 <<>> netpia.scbyun.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4479
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;netpia.scbyun.com. IN A
;; ANSWER SECTION:
netpia.scbyun.com. 60 IN A 100.100.100.102
;; AUTHORITY SECTION:
scbyun.com. 86400 IN NS ns.scbyun.com.
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Mar 29 20:47:36 2010
;; MSG SIZE rcvd: 68
----------------------------------------------------------------------------------------------------
[server log]
vi update.log
29-Mar-2010 19:13:10.147 update: info: client 10.0.10.124#14463: updating zone 'scbyun.com/IN': adding an RR at 'ftp.scbyun.com' A
29-Mar-2010 19:40:33.111 update: info: client 10.0.10.124#4097: updating zone 'scbyun.com/IN': update unsuccessful: mysql.scbyun.com: 'name in use' prerequisite not satisfied (NXDOMAIN)
29-Mar-2010 19:41:11.787 update: info: client 10.0.10.124#4097: updating zone 'scbyun.com/IN': update unsuccessful: mysql.scbyun.com: 'name in use' prerequisite not satisfied (NXDOMAIN)
29-Mar-2010 19:44:38.907 update: info: client 10.0.10.124#34935: updating zone 'scbyun.com/IN': adding an RR at 'oracle.scbyun.com' A
29-Mar-2010 19:48:50.776 update: info: client 10.0.10.124#39963: updating zone 'scbyun.com/IN': update unsuccessful: oracle.scbyun.com: 'name not in use' prerequisite not satisfied (YXDOMAIN)
29-Mar-2010 19:57:28.630 update: info: client 10.0.10.124#4285: updating zone 'scbyun.com/IN': adding an RR at 'adfsdf.scbyun.com' A
29-Mar-2010 20:47:22.833 update: info: client 10.0.10.124#39355: updating zone 'scbyun.com/IN': adding an RR at 'netpia.scbyun.com' A
참고 페이지 :
http://bind.cslab.kr/dynamic-update
'네임서버' 카테고리의 다른 글
[BIND] named.conf 옵션 (1) | 2013.06.27 |
---|---|
BIND [ERROR]bad owner name (check-names) (0) | 2013.06.26 |
nslookup 명령어를 사용하여 DNS 존 전송(zone transfer)을 확인하는 방법 (0) | 2013.06.25 |
DNS 성능 점검(queryperf) (1) | 2013.06.25 |
BIND DNS 서버의 ZONE 동기화 설정을 구성하는 방법 (0) | 2013.06.25 |