ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Timur Batyrshin <batyrshin@ieml.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: [Sysadmins] обновление DNS
Date: Thu, 05 Apr 2007 20:10:19 +0400
Message-ID: <46151F6B.3010600@ieml.ru> (raw)

Объясните, пожалуйста, в чём разница между этими двумя наборами команд:

========
[root@server zone]# nsupdate -d
> key DHCP_UPDATER SECRET-KEY==
> server 127.0.0.1
> zone sub1.domain.ru
> update add test 3600 A 192.168.31.66
> send
Reply from update query:
;; ->>HEADER<<- opcode: UPDATE, status: NOTZONE, id:   5024
;; flags: qr ra ; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 1
;; TSIG PSEUDOSECTION:
=========

То же самое, но без директивы server :
=========
[root@server log]# nsupdate -d
> key DHCP_UPDATER SECRET-KEY==
> zone sub1.domain.ru
> update add test 3600 A 192.168.31.66
> send
; Communication with 127.0.0.1#53 failed: timed out
could not talk to any default name server
=========

Почему так? Ведь в обоих случаях запрос уходит на 127.0.0.1#53, а ответа в одном из них нет?


Вот на всякий случай настройки сервера:

/etc/resolv.conf:
search sub1.domain.ru
nameserver 127.0.0.1

/etc/HOSTNAME:
server

/var/lib/bind/etc/local.conf:
include "/etc/rfc1912.conf";
zone "sub1.ieml.ru" in {
    type master;
    file "sub1.ieml.ru.zone";
    allow-update { key DHCP_UPDATER; };
};
zone "31.168.192.in-addr.arpa" in {
    type master;
    file "31.168.192.in-addr.arpa";
    allow-update { key DHCP_UPDATER; };
};
key "DHCP_UPDATER" {
    algorithm hmac-md5;
    secret "ITmpAOsH0pwKmCJIM5LT2g==";
};

iptables отсутствует.





                 reply	other threads:[~2007-04-05 16:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=46151F6B.3010600@ieml.ru \
    --to=batyrshin@ieml.ru \
    --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