ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] обновление DNS
@ 2007-04-05 16:10 Timur Batyrshin
  0 siblings, 0 replies; only message in thread
From: Timur Batyrshin @ 2007-04-05 16:10 UTC (permalink / raw)
  To: ALT Linux sysadmin discuss

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

========
[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 отсутствует.





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-05 16:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-05 16:10 [Sysadmins] обновление DNS Timur Batyrshin

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