Нюансы с настройкой DDNS

Автор Vladsleeping, 18 января 2018, 17:05:15

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

Vladsleeping

Приветствую!
Мне нужно настроить ddns в локальной сети. Тема для меня новая, поэтому заранее извиняюсь за тупые вопросы. Для отладки взял две виртуальные машины:
а) Сервер: hostname sura-sov-500, ip = 172.20.30.11, sura-sov-500.kuz.pulsar
б) Клиент: hostname v13, ip = 172.20.30.13, v13.kuz.pulsar
В качестве сервера используется bind9. В качестве клиента решено использовать ddclient (https://sourceforge.net/projects/ddclient/ ). Debian 4.9.30 на обеих виртуалках, все настройки выполняются под root'ом.
Настройку произвожу по образцу статьи https://habrahabr.ru/sandbox/30433/.
На клиенте сгенерил пару ключей для обмена информацией между клиентом и сервером: Kkuz.pulsar.+157+38452.key, Kkuz.pulsar.+157+38452.private.
В итоге после настройки на сервере для bind:
/etc/bind/named.conf.options:
options {
    directory "/var/cache/bind";
    forwarders {
    };
    auth-nxdomain no;
    listen-on-v6 { none; };
};


/etc/bind/named.conf.local:
zone "kuz.pulsar" {
    type master;
    file "/etc/bind/db.kuz.pulsar";
    allow-update { key pulsarkey; };
};
zone "30.20.172.in-addr.arpa" {
    type master;
    file "/etc/bind/db.30.20.172";
    allow-update { key pulsarkey; };
};


/etc/bind/named.conf:
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
include "/etc/bind/dnskeys.conf";


/etc/bind/dnskeys.conf:
key pulsarkey {
    algorithm hmac-md5;
    secret "HpmDLiKOj/JGHqjF33DTntctTPkFbcsmg5vtOJ9/fVGyDzKy6KbYMcrq hhnYZ8nmtO8KUqPJe35WivQzh9XN7w==";
};


/etc/bind/db.kuz.pulsar:
$TTL 1d
kuz.pulsar. IN SOA sura-sov-500.kuz.pulsar. root.sura-sov-500.kuz.pulsar. (
    1 ; serial
    1d ; refresh
    1h ; retry
    1w ; expire
    1d ; minimum
)

kuz.pulsar. IN NS sura-sov-500.kuz.pulsar.

localhost.kuz.pulsar. IN A 127.0.0.1
sura-sov-500.kuz.pulsar. IN A 172.20.30.11


/etc/bind/db.30.20.172:
$TTL 1d
30.20.172.in-addr.arpa. IN SOA sura-sov-500.kuz.pulsar. root.sura-sov-500.kuz.pulsar. (
    1 ; serial
    1d ; refresh
    1h ; retry
    1w ; expire
    1d ; minimum
)

30.20.172.in-addr.arpa. IN NS sura-sov-500.kuz.pulsar.

11.30.20.172.in-addr.arpa. IN PTR sura-sov-500.kuz.pulsar


Настройки dhcp:
/etc/dhcp/dhcpd.conf
ddns-update-style interim;

# option definitions common to all supported networks...
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-time 600;
max-lease-time 7200;

log-facility local7;

subnet 172.20.30.0 netmask 255.255.255.0 {
    default-lease-time 21600;
    max-lease-time 28800;
    option domain-name "kuz.pulsar";
    option domain-name-servers 172.20.30.11;
    option subnet-mask 255.255.255.0;
    option routers 172.20.0.1;
    range 172.20.30.12 172.20.30.19;
}

key pulsarkey {
    algorithm hmac-md5;
    secret HpmDLiKOj/JGHqjF33DTntctTPkFbcsmg5vtOJ9/fVGyDzKy6KbYMcrq hhnYZ8nmtO8KUqPJe35WivQzh9XN7w==;
};

zone kuz.pulsar {
primary 172.20.30.11; # Адрес DNS сервера.
key pulsarkey;
}

zone 30.20.172.in-addr.arpa {
primary 172.20.30.11; # Адрес DNS сервера.
key pulsarkey;
}

В /etc/default/isc-dhcp-server прописал INTERFACES="bond0"
Файл /etc/resolv.conf:
domain kuz.pulsar
nameserver 127.0.0.1


После рестарта bind9 и isc-dhcp-server syslog такой:


Jan 18 11:42:51 sura-sov-500 systemd[1]: Starting BIND Domain Name Server...
Jan 18 11:42:51 sura-sov-500 systemd[1]: Started BIND Domain Name Server.
Jan 18 11:42:51 sura-sov-500 named[1571]: starting BIND 9.9.5-9+deb8u14-Debian -f -u bind
Jan 18 11:42:51 sura-sov-500 named[1571]: built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-geoip=/usr' '--with-atf=no' '--enable-ipv6' '--enable-rrl' '--enable-filter-aaaa' 'CFLAGS=-fno-strict-aliasing -fno-delete-null-pointer-checks -DDIG_SIGCHASE -O2'
Jan 18 11:42:51 sura-sov-500 named[1571]: ----------------------------------------------------
Jan 18 11:42:51 sura-sov-500 named[1571]: BIND 9 is maintained by Internet Systems Consortium,
Jan 18 11:42:51 sura-sov-500 named[1571]: Inc. (ISC), a non-profit 501(c)(3) public-benefit
Jan 18 11:42:51 sura-sov-500 named[1571]: corporation.  Support and training for BIND 9 are
Jan 18 11:42:51 sura-sov-500 named[1571]: available at https://www.isc.org/support
Jan 18 11:42:51 sura-sov-500 named[1571]: ----------------------------------------------------
Jan 18 11:42:51 sura-sov-500 named[1571]: adjusted limit on open files from 4096 to 1048576
Jan 18 11:42:51 sura-sov-500 named[1571]: found 4 CPUs, using 4 worker threads
Jan 18 11:42:51 sura-sov-500 named[1571]: using 4 UDP listeners per interface
Jan 18 11:42:51 sura-sov-500 named[1571]: using up to 4096 sockets
Jan 18 11:42:51 sura-sov-500 named[1571]: loading configuration from '/etc/bind/named.conf'
Jan 18 11:42:51 sura-sov-500 named[1571]: reading built-in trusted keys from file '/etc/bind/bind.keys'
Jan 18 11:42:51 sura-sov-500 named[1571]: using default UDP/IPv4 port range: [1024, 65535]
Jan 18 11:42:51 sura-sov-500 named[1571]: using default UDP/IPv6 port range: [1024, 65535]
Jan 18 11:42:51 sura-sov-500 named[1571]: listening on IPv4 interface lo, 127.0.0.1#53
Jan 18 11:42:51 sura-sov-500 named[1571]: listening on IPv4 interface bond0, 172.20.30.11#53
Jan 18 11:42:51 sura-sov-500 named[1571]: generating session key for dynamic DNS
Jan 18 11:42:51 sura-sov-500 named[1571]: sizing zone task pool based on 7 zones
Jan 18 11:42:51 sura-sov-500 named[1571]: set up managed keys zone for view _default, file 'managed-keys.bind'
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 10.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 16.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 17.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 18.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 19.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 20.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 21.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 22.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 23.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 24.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 25.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 26.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 27.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 28.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 29.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 30.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 31.172.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 168.192.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 64.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 65.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 66.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 67.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 68.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 69.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 70.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 71.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 72.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 73.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 74.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 75.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 76.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 77.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 78.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 79.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 80.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 81.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 82.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 83.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 84.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 85.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 86.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 87.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 88.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 89.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 90.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 91.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 92.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 93.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 94.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 95.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 96.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 97.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 98.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 99.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 100.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 101.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 102.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 103.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 104.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 105.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 106.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 107.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 108.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 109.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 110.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 111.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 112.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 113.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 114.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 115.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 116.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 117.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 118.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 119.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 120.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 121.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 122.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 123.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 124.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 125.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 126.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 127.100.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 254.169.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 100.51.198.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 113.0.203.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: D.F.IP6.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 8.E.F.IP6.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 9.E.F.IP6.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: A.E.F.IP6.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: B.E.F.IP6.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
Jan 18 11:42:51 sura-sov-500 named[1571]: command channel listening on 127.0.0.1#953
Jan 18 11:42:51 sura-sov-500 named[1571]: command channel listening on ::1#953
Jan 18 11:42:51 sura-sov-500 named[1571]: managed-keys-zone: loaded serial 0
Jan 18 11:42:51 sura-sov-500 named[1571]: zone 0.in-addr.arpa/IN: loaded serial 1
Jan 18 11:42:51 sura-sov-500 named[1571]: zone 127.in-addr.arpa/IN: loaded serial 1
Jan 18 11:42:51 sura-sov-500 named[1571]: zone localhost/IN: loaded serial 2
Jan 18 11:42:51 sura-sov-500 named[1571]: zone 30.20.172.in-addr.arpa/IN: loaded serial 1
Jan 18 11:42:51 sura-sov-500 named[1571]: zone 255.in-addr.arpa/IN: loaded serial 1
Jan 18 11:42:51 sura-sov-500 named[1571]: zone kuz.pulsar/IN: loaded serial 1
Jan 18 11:42:51 sura-sov-500 named[1571]: all zones loaded
Jan 18 11:42:51 sura-sov-500 named[1571]: running
Jan 18 11:44:00 sura-sov-500 systemd[1]: Starting LSB: DHCP server...
Jan 18 11:44:00 sura-sov-500 dhcpd: Internet Systems Consortium DHCP Server 4.3.1
Jan 18 11:44:00 sura-sov-500 dhcpd: Copyright 2004-2014 Internet Systems Consortium.
Jan 18 11:44:00 sura-sov-500 dhcpd: All rights reserved.
Jan 18 11:44:00 sura-sov-500 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Jan 18 11:44:00 sura-sov-500 dhcpd: Internet Systems Consortium DHCP Server 4.3.1
Jan 18 11:44:00 sura-sov-500 dhcpd: Copyright 2004-2014 Internet Systems Consortium.
Jan 18 11:44:00 sura-sov-500 dhcpd: All rights reserved.
Jan 18 11:44:00 sura-sov-500 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Jan 18 11:44:00 sura-sov-500 dhcpd: Wrote 0 leases to leases file.
Jan 18 11:44:00 sura-sov-500 dhcpd: Server starting service.
Jan 18 11:44:02 sura-sov-500 isc-dhcp-server[1644]: Starting ISC DHCP server: dhcpd.
Jan 18 11:44:02 sura-sov-500 systemd[1]: Started LSB: DHCP server.



На клиентской части настройки ddclient:
/etc/ddclient/ddclient.conf:
# /etc/ddclient/ddclient.conf
#

protocol=nsupdate
use=if,if=bond0
server=sura-sov-500.kuz.pulsar
login=/usr/bin/nsupdate
password=/etc/ddclient/Kkuz.pulsar.+157+38452.key
zone=kuz.pulsar
ttl=10
v13.kuz.pulsar

/var/cache/ddclient.cache:
## ddclient-3.8.3
## last updated at Thu Jan 18 11:14:42 2018 (1516274082)
atime=1516274082,host=v13.kuz.pulsar,ip=,mtime=0,status=noconnect,ttl=10,warned-min-error-interval=0,warned-min-interval=0,wtime=0,zone=kuz.pulsar v13.kuz.pulsar

/etc/resolv.conf:
domain kuz.pulsar
nameserver 172.20.30.11

Запускаю ddclient с подробной отладкой:
ddclient –daemon=0 –debug –verbose -noquiet
На выходе вот что:
=== opt ====
opt{cache}                           : <undefined>
opt{cmd}                             : <undefined>
opt{cmd-skip}                        : <undefined>
opt{daemon}                          : 0
opt{debug}                           : 1
opt{exec}                            : <undefined>
opt{facility}                        : <undefined>
opt{file}                            : <undefined>
opt{force}                           : <undefined>
opt{foreground}                      : <undefined>
opt{fw}                              : <undefined>
opt{fw-login}                        : <undefined>
opt{fw-password}                     : <undefined>
opt{fw-skip}                         : <undefined>
opt{geturl}                          : <undefined>
opt{help}                            : <undefined>
opt{host}                            : <undefined>
opt{if}                              : <undefined>
opt{if-skip}                         : <undefined>
opt{ip}                              : <undefined>
opt{login}                           : <undefined>
opt{mail}                            : <undefined>
opt{mail-failure}                    : <undefined>
opt{max-interval}                    : 2160000
opt{min-error-interval}              : 300
opt{min-interval}                    : 30
opt{options}                         : <undefined>
opt{password}                        : <undefined>
opt{pid}                             : <undefined>
opt{postscript}                      : <undefined>
opt{priority}                        : <undefined>
opt{protocol}                        : <undefined>
opt{proxy}                           : <undefined>
opt{query}                           : <undefined>
opt{quiet}                           : 0
opt{retry}                           : <undefined>
opt{server}                          : <undefined>
opt{ssl}                             : <undefined>
opt{syslog}                          : <undefined>
opt{test}                            : <undefined>
opt{timeout}                         : <undefined>
opt{use}                             : <undefined>
opt{verbose}                         : 1
opt{web}                             : <undefined>
opt{web-skip}                        : <undefined>
=== globals ====
globals{daemon}                      : 60
globals{debug}                       : 1
globals{if}                          : bond0
globals{login}                       : /usr/bin/nsupdate
globals{password}                    : /etc/ddclient/Kkuz.pulsar.+157+38452.key
globals{protocol}                    : nsupdate
globals{quiet}                       : 0
globals{server}                      : sura-sov-500.kuz.pulsar
globals{ttl}                         : 10
globals{use}                         : if
globals{verbose}                     : 1
globals{zone}                        : kuz.pulsar
=== config ====
config{v13.kuz.pulsar}{atime}        : 0
config{v13.kuz.pulsar}{cacheable}    : ARRAY(0x15120e8)
config{v13.kuz.pulsar}{cmd}          : <undefined>
config{v13.kuz.pulsar}{cmd-skip}     :
config{v13.kuz.pulsar}{fw}           :
config{v13.kuz.pulsar}{fw-login}     : <undefined>
config{v13.kuz.pulsar}{fw-password}  :
config{v13.kuz.pulsar}{fw-skip}      :
config{v13.kuz.pulsar}{host}         : v13.kuz.pulsar
config{v13.kuz.pulsar}{if}           : bond0
config{v13.kuz.pulsar}{if-skip}      :
config{v13.kuz.pulsar}{ip}           : <undefined>
config{v13.kuz.pulsar}{login}        : /usr/bin/nsupdate
config{v13.kuz.pulsar}{max-interval} : 2160000
config{v13.kuz.pulsar}{min-error-interval} : 300
config{v13.kuz.pulsar}{min-interval} : 30
config{v13.kuz.pulsar}{mtime}        : 0
config{v13.kuz.pulsar}{password}     : /etc/ddclient/Kkuz.pulsar.+157+38452.key
config{v13.kuz.pulsar}{protocol}     : nsupdate
config{v13.kuz.pulsar}{server}       : sura-sov-500.kuz.pulsar
config{v13.kuz.pulsar}{status}       :
config{v13.kuz.pulsar}{ttl}          : 10
config{v13.kuz.pulsar}{use}          : if
config{v13.kuz.pulsar}{warned-min-error-interval} : 0
config{v13.kuz.pulsar}{warned-min-interval} : 0
config{v13.kuz.pulsar}{web}          : dyndns
config{v13.kuz.pulsar}{web-skip}     :
config{v13.kuz.pulsar}{wtime}        : 30
config{v13.kuz.pulsar}{zone}         : kuz.pulsar
=== cache ====
cache{v13.kuz.pulsar}{atime}         : 0
cache{v13.kuz.pulsar}{host}          : v13.kuz.pulsar
cache{v13.kuz.pulsar}{mtime}         : 0
cache{v13.kuz.pulsar}{status}        : noconnect
cache{v13.kuz.pulsar}{ttl}           : 10
cache{v13.kuz.pulsar}{warned-min-error-interval} : 1516273607
cache{v13.kuz.pulsar}{warned-min-interval} : 0
cache{v13.kuz.pulsar}{wtime}         : 30
cache{v13.kuz.pulsar}{zone}          : kuz.pulsar
DEBUG:    get_ip: using if, bond0 reports 172.20.30.13
DEBUG:   
DEBUG:     nic_nsupdate_update -------------------
INFO:     setting IP address to 172.20.30.13 for v13.kuz.pulsar
UPDATE:   updating v13.kuz.pulsar
UPDATE:   nsupdate command is: /usr/bin/nsupdate -k /etc/ddclient/Kkuz.pulsar.+157+38452.key -d
UPDATE:   nsupdate instructions are:
UPDATE:    server sura-sov-500.kuz.pulsar
UPDATE:    zone kuz.pulsar.
UPDATE:    update delete v13.kuz.pulsar. A
UPDATE:    update add v13.kuz.pulsar. 10 A 172.20.30.13
UPDATE:    send
Outgoing update query:
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id:  42051
;; flags:; ZONE: 1, PREREQ: 0, UPDATE: 2, ADDITIONAL: 1
;; ZONE SECTION:
;kuz.pulsar. IN SOA

;; UPDATE SECTION:
v13.kuz.pulsar. 0 ANY A
v13.kuz.pulsar. 10 IN A 172.20.30.13

;; TSIG PSEUDOSECTION:
kuz.pulsar. 0 ANY TSIG hmac-md5.sig-alg.reg.int. 1516273623 300 16 JWj6a92ZPVjFNb8gA5D5Gw== 42051 NOERROR 0

FAILED:   updating v13.kuz.pulsar


Последнее в файл записалось почему-то не полностью, на самом деле так (см. вложение).

Собственно, что не так с настройками клиента? Видимо, речь о ключе (BADKEY), но вроде бы делал всё по инструкциям.
Зачем private key? Настройка сервера bind для динамической и статической адресации одинакова?

endru

зачем используется ddclient? чем стандартный dhclient не подходит?