# vi /var/named/chroot/・・
いつも教えて頂きありがとうございます。
標記の件。
[root@localhost ~]# vi /var/named/chroot/etc/named.conf
を実行致しました。
先ほど
//
// named.conf for Red Hat caching-nameserver
//
options {
version "unknown";
directory "/var/named";
allow-query { localhost; localnets; };
allow-recursion { localhost; localnets; };
allow-transfer { localhost; localnets; };
forwarders { xxx.xxx.xxx.xx1; xxx.xxx.xxx.xx2; };
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
logging {
category lame-servers { null; };
};
view "internal"{
match-clients { localnets; };
recursion yes;
zone "." IN {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "1.168.192.in-addr.arpa";
};
zone "centos.orz" {
type master;
file "centos.orz.local";
};
};
include "/etc/rndc.key";
を書く途中でzzで終了したつもりでした。
やはりviを知らないためおかしなメッセージが出ました。
下記です
記
E325: ATTENTION
Found a swap file by the name "/var/named/chroot/etc/.named.conf.swp"
owned by: root dated: Sat Feb 5 20:13:50 2011
file name: /var/named/chroot/etc/named.conf
modified: YES
user name: root host name: localhost.localdomain
process ID: 5133
While opening file "/var/named/chroot/etc/named.conf"
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /var/named/chroot/etc/named.c
onf"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/var/named/chroot/etc/.named.
conf.swp"
to avoid this message.
"/var/named/chroot/etc/named.conf" [New File]
Press ENTER or type command to continue
どう対処すればいいでしょうか?
ご回答の程、宜しくお願い申し上げます。