From: Maxim.Savrilov@socenter.ru
To: Сообщество <community@altlinux.ru>
Subject: [Comm] ddns question to knowers
Date: Wed, 16 Jul 2003 23:14:26 +0700
Message-ID: <20030716231426.02d12857.Maxim.Savrilov@socenter.ru> (raw)
[-- Attachment #1: Type: text/plain, Size: 3655 bytes --]
Здравствуйте!
Решил я у себя настроить внутреннюю подсетку с DNS
чтобы пользователи имена получали вместе в ip-адресами
погуглил и набрел на архив debian-russian http://lists.debian.org/debian-russian/2003/debian-russian-200301/msg00110.html
сделал как там написано, вроде получилось.
Но не все.
Итак, по порядку
сервер
Мастер 2.0
dhcp-3.0.1-alt0.8.1
bind-8.3.3-alt1.1
------------------------------------------------
/var/lib/named/etc/local.conf
#localhost & localdomain skipped
zone "soc.ru" {
notify no;
type master;
file "soc.ru";
allow-query { 127.0.0.1 192.168.0.0/255.255.255.0; };
allow-update { 127.0.0.1; };
};
zone "0.168.192.in-addr.arpa" {
notify no;
type master;
file "0.168.192.in-addr.arpa";
allow-query { 127.0.0.1 192.168.0.0/255.255.255.0; };
allow-update { 127.0.0.1; };
};
------------------------------------------------
/var/lib/named/zone/soc.ru
$TTL 1D
@ IN SOA soc.ru. root.soc.ru. (
2003071603 ; serial
12H ; refresh
1H ; retry
1W ; expire
1D ; minimum TTL
)
IN NS mx.soc.ru.
mx IN A 192.168.0.1
ltsp IN A 192.168.0.2
------------------------------------------------
/var/lib/named/zone/0.168.192.in-addr.arpa
$TTL 1D
@ IN SOA soc.ru. root.soc.ru. (
2003071604 ; serial
12H ; refresh
1H ; retry
1W ; expire
1D ; minimum TTL
)
IN NS mx.soc.ru.
1 IN PTR mx.soc.ru.
2 IN PTR ltsp.soc.ru.
------------------------------------------------
/etc/sysconfig/dhcpd
ddns-updates on;
use-host-decl-names on;
ddns-update-style interim;
zone soc.ru. {
primary 127.0.0.1;
}
zone 0.168.192.in-addr.arpa {
primary 127.0.0.1;
}
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
range 192.168.0.51 192.168.0.250;
option domain-name-servers 192.168.0.1;
option time-offset 6; # Eastern Standard Time
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
ddns-hostname = pick (option fqdn.hostname, option host-name,concat ("dhcp-",binary-to-ascii (10, 8, "-", leased-address)));
option host-name = config-option server.ddns-hostname;
ddns-domainname "soc.ru";
ddns-rev-domainname "0.168.192.in-addr.arpa";
}
------------------------------------------------
Хост грузится, получает ip и hostname (кстати, клиент на М2.2 не передает свой hostname,
поэтому получает от dhcpd в ответ hostname вида dhcp-192-168-0-208, о чем упоминалос в debian-russian)
но в DNS не регистрируется!!!
host dhcp-192-168-0-208 не рабоатет
host dhcp-192-168-0-208.soc.ru тоже не работает
при этом host ltsp исправно выдает 192.168.0.2
может эта версия bind не поддерживает ddns?
В ожидании наискорейшего ответа от уважаемых гуру...
--
Дискуссия протекала культурно, с упоминанием наиболее прославленных
в народе атрибутов богов плодородия.
[-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --]
next reply other threads:[~2003-07-16 16:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-16 16:14 Maxim.Savrilov [this message]
2003-07-17 3:58 ` Mike Lykov
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=20030716231426.02d12857.Maxim.Savrilov@socenter.ru \
--to=maxim.savrilov@socenter.ru \
--cc=community@altlinux.ru \
/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 Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git