VnLamp

Go Back   VnLamp > Khu vực Training > LPI > DNS

Trả lời
 
LinkBack Ðiều Chỉnh Xếp Bài
khong transfer duoc file config mater
Old
  (#1 (permalink))
 
Status: Offline
Posts: 7
Tham gia: Oct 2011
Học viên VNLAMP
Default khong transfer duoc file config mater - 04-12-2011, 09:4 04-12-2011

Trích:
Dec 3 18:05:34 localhost named[14872]: transfer of '2.168.192.in-addr.arpa/IN' from 192.168.2.253#53: connected using 192.168.2.254#58622
Dec 3 18:05:34 localhost named[14872]: dumping master file: tmp-qbaxZ0MT85: open: permission denied
Dec 3 18:05:34 localhost named[14872]: transfer of '2.168.192.in-addr.arpa/IN' from 192.168.2.253#53: failed while receiving responses: permission denied
Dec 3 18:05:34 localhost named[14872]: transfer of '2.168.192.in-addr.arpa/IN' from 192.168.2.253#53: end of transfer
file named.conf
Trích:
acl mynet {
192.168.2.0/24;
};

options {
directory "/var/named";
notify yes;
auth-nxdomain yes;
// multiple-cnames yes;
listen-on {
192.168.2.253;
};
// forward first;
// forwarders {203.162.4.1;};
};

zone "vn.local" {
type slave;
file "2vn.local.zone";
masters {192.168.2.253;};

};
zone "2.168.192.in-addr.arpa" {

type slave;
file "22.168.192.in-addr.arpa.zone";
masters {192.168.2.253;};
};
Vậy bây giờ mình phải làm sao để slave dc

Trích:
đã fix:
thêm slaves/ vào path trên là chạy dc slave

thay đổi nội dung bởi: tuanvu_n, 04-12-2011 lúc 22:4 04-12-2011.
   
Trả Lời Với Trích Dẫn
Old
  (#2 (permalink))
 
Status: Offline
Posts: 601
Tham gia: Dec 2007
^..^
 
hautp's Avatar
Default 04-12-2011, 21:4 04-12-2011

chào bạn ,

IP server của bạn là bao nhiêu , IP client là bao nhiêu ?
   
Trả Lời Với Trích Dẫn
Old
  (#3 (permalink))
 
Status: Offline
Posts: 7
Tham gia: Oct 2011
Học viên VNLAMP
Default 04-12-2011, 21:4 04-12-2011

hi, anh Hậu. Em cấp phát ip như thề này, IP server thì 192.168.2.253
Trích:
ddns-update-style interim;
ignore client-updates;

subnet 192.168.2.0 netmask 255.255.255.0 {

# --- default gateway
option routers 192.168.2.253;
option subnet-mask 255.255.255.0;

option domain-name "vn.local";
option domain-name-servers 192.168.2.253;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 192.168.2.100 192.168.2.150;
default-lease-time 21600;
max-lease-time 43200;


# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 00:0C:29:C6:99:04;
fixed-address 192.168.2.254;
}
}
nói chung là dhcp va dns ổn, nhưng slave thì chưa được.
   
Trả Lời Với Trích Dẫn
Old
  (#4 (permalink))
 
Status: Offline
Posts: 7
Tham gia: Oct 2011
Học viên VNLAMP
Default 04-12-2011, 22:4 04-12-2011

ah, cuối cùng em đã làm được(thêm slaves\), thanks anh đã reply.
ah cho em hỏi thông số notify nó có mục đíc gì vậy? em coi một số file sample và chút tài liệu thì không thấy notify

thay đổi nội dung bởi: tuanvu_n, 04-12-2011 lúc 22:4 04-12-2011.
   
Trả Lời Với Trích Dẫn
Old
  (#5 (permalink))
 
Status: Offline
Posts: 601
Tham gia: Dec 2007
^..^
 
hautp's Avatar
Default 05-12-2011, 10:5 05-12-2011

chào bạn ,

Bạn dịch chữ notify có nghĩa là gì ?

"DNS NOTIFY works like this: when a primary master name server notices a change to data in a zone, it sends a special request to all of the slave servers for that zone. It determines which servers are the slaves for the zone by looking at the list of NS records in the zone and taking out the one that points to the name server listed in the first record-specific field in the zone's SOA record as well as the local host."
   
Trả Lời Với Trích Dẫn
Trả lời


Ðiều Chỉnh
Xếp Bài

Quyền Sử Dụng Ở Diễn Ðàn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Smilies đang Mở
[IMG] đang Tắt
HTML đang Tắt
Trackbacks are Mở
Pingbacks are Mở
Refbacks are Mở


Múi giờ GMT. Hiện tại là 02:21 21-05-2012.