ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] проблема с secondary dns
Date: Sat, 5 Aug 2006 17:55:17 +0300
Message-ID: <20060805145517.GB27285@osdn.org.ua> (raw)
In-Reply-To: <44D469AA.10203@mail.ru>

On Sat, Aug 05, 2006 at 12:49:30PM +0300, Sergiy Guminilovych wrote:
> Aug  5 12:24:50 ns2 named[9649]: zone xxx.xxx.ua/IN: refresh: could not
> set file modification time of 'slave/xxx.xxx.ua': permission denied
> Права на файл с зоной xxx.xxx.ua  следующие: root:named -rw-rw---T, на
> каталог slave: root:named drwxrwxr-t

drwxrwx--T  2 root named  /var/lib/bind/zone/slave/
-rw-------  1 named named ***.com

> Зона каждый час обновляется:
> cat /etc/cron.hourly/bind.slave

Ой.  А зачем так-то?!

> #!/bin/sh
> /usr/bin/dig axfr xxx.xxx.ua > /var/lib/bind/zone/slave/xxx.xxx.ua
> /sbin/service bind restart
> 
> Понимаю что, собака порылась в правах доступа, но что ему еще
> надо никак не пойму :(

Вообще-то обычно делается чуть иначе -- действительно,
разрешается AXFR с мастера на слейв, но дальше тот таскает
самостоятельно:

zone "***.com" {
        type slave;
        notify no;
        file "slave/***.com";
        allow-transfer { localhost; };
        allow-query { any; };
        masters { ns1.ip.ad.dr; };
};

Соответственно на мастере _можно_ организовать нотификацию,
но насколько помню -- необязательно:

zone "altlinux.org.ua" {
    type master;
    file "master/altlinux.org.ua";
    allow-transfer { 193.201.116.2; };
    also-notify { 193.201.116.2; };
};

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


  parent reply	other threads:[~2006-08-05 14:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-05  9:49 Sergiy Guminilovych
2006-08-05  9:51 ` Michael Shigorin
2006-08-05 13:52   ` Sergiy Guminilovych
2006-08-05 14:55 ` Michael Shigorin [this message]
2006-08-06 12:21   ` Sergiy Guminilovych
2006-08-06 13:45     ` Michael Shigorin
2006-08-07 20:42 ` Dmitry V. Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060805145517.GB27285@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=shigorin@gmail.com \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git