티스토리 뷰

___네임서버

[BIND] .jnl 데이타를 zone로 가져오기

변군 변군이글루 2013. 7. 4. 11:02

.jnl 데이타를 zone로 가져오기

 

nsupdate로 sangchul.my-domain.re.kr 추가
[root@resursive named]# nsupdate -k Kmy-domain.re.kr.+157+32789.key
> server 10.0.0.11
> update add sangchul.my-domain.re.kr. 7200 IN A 10.0.0.53
> show
Outgoing update query:
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id:      0
;; flags:; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; UPDATE SECTION:
sangchul.my-domain.re.kr. 7200  IN      A       10.0.0.53

> send
> quit

 

질의테스트(sangchul.my-domain.re.kr)
[root@resursive named]# dig @10.0.0.11 sangchul.my-domain.re.kr  +short
10.0.0.53

 

ns1 서버에서 my-domain.re.kr-zone 파일 확인
// sangchul.my-domain.re.kr 도메인 없음
[root@NS1 named]# cat my-domain.re.kr-zone
$ORIGIN .
$TTL 60 ; 1 minute
my-domain.re.kr         IN SOA  ns1.my-domain.re.kr. manager.my-domain.re.kr. (
                                2013070203 ; serial
                                21600      ; refresh (6 hours)
                                1800       ; retry (30 minutes)
                                1209600    ; expire (2 weeks)
                                86400      ; minimum (1 day)
                                )
                        NS      ns1.my-domain.re.kr.
                        NS      ns2.my-domain.re.kr.
                        A       10.0.0.55
$ORIGIN my-domain.re.kr.
$TTL 300        ; 5 minutes
book                    A       10.0.0.55
$TTL 7200       ; 2 hours
car                     A       127.0.0.1
$TTL 60 ; 1 minute
ftp                     A       10.0.0.54
ns1                     A       10.0.0.11
ns2                     A       10.0.0.12
test                    A       127.0.0.2
www                     A       10.0.0.55

 

질의테스트(sangchul.my-domain.re.kr)
[root@NS1 named]# dig @127.0.0.1 sangchul.my-domain.re.kr +short
10.0.0.53

 

.jnl 파일에 sangchul.my-domain.re.kr 도메인이 있다
[root@NS1 named]# ls -la | grep my-domain.re.kr-zone
-rw-r--r--   1 root root  551 2013-07-04 10:35 my-domain.re.kr-zone
-rw-r--r--   1 root root 1253 2013-07-04 10:46 my-domain.re.kr-zone.jnl

 

.jnl 파일에 있는 도메인 정보를 zone 파일로 가져오기
[root@NS1 named]# rndc freeze

 

rndc 명령어
  freeze        Suspend updates to all dynamic zones.
  freeze zone [class [view]]

  thaw          Enable updates to all dynamic zones and reload them.
  thaw zone [class [view]]
                Enable updates to a frozen dynamic zone and reload it.

 

my-domain.re.kr-zone 파일 확인

[root@NS1 named]# cat my-domain.re.kr-zone
$ORIGIN .
$TTL 60 ; 1 minute
my-domain.re.kr         IN SOA  ns1.my-domain.re.kr. manager.my-domain.re.kr. (
                                2013070204 ; serial
                                21600      ; refresh (6 hours)
                                1800       ; retry (30 minutes)
                                1209600    ; expire (2 weeks)
                                86400      ; minimum (1 day)
                                )
                        NS      ns1.my-domain.re.kr.
                        NS      ns2.my-domain.re.kr.
                        A       10.0.0.55
$ORIGIN my-domain.re.kr.
$TTL 300        ; 5 minutes
book                    A       10.0.0.55
$TTL 7200       ; 2 hours
car                     A       127.0.0.1
$TTL 60 ; 1 minute
ftp                     A       10.0.0.54
ns1                     A       10.0.0.11
ns2                     A       10.0.0.12
$TTL 7200       ; 2 hours
sangchul                A       10.0.0.53
$TTL 60 ; 1 minute
test                    A       127.0.0.2
www                     A       10.0.0.55
[root@NS1 named]#

 

 


 

'___네임서버' 카테고리의 다른 글

[BIND] zone transfer  (0) 2013.07.08
[BIND] bind-9.9.3rc2 소스 컴파일  (0) 2013.07.04
[BIND] .jnl 데이타를 zone로 가져오기  (0) 2013.07.04
[BIND] TSIG 설정  (0) 2013.07.04
[네임서버] 포워딩(forwarding)  (0) 2013.07.03
[bind] hint(named.cache) 파일 설치  (0) 2013.07.03
댓글
댓글쓰기 폼