powered by simpleCommunicator - 2.0.59     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Unix-системы [игнор отключен] [закрыт для гостей] / DNS+DHCP
7 сообщений из 7, страница 1 из 1
DNS+DHCP
    #32756186
SeregaS
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
У меня 2 машины: на одной samba, dhcp на другой dns. Хочу чтобы dhcp передавал инфу о машинах на dns, что сделал неправильно? Заранее спасибо.

dhcp:
server-identifier geoserver.monitoring.org;

ddns-update-style interim;
update-static-leases true;


zone monitoring.org. {
primary 127.0.0.1;
}

zone 5.168.192.in-addr.arpa. {
primary 127.0.0.1;
}

subnet 192.168.5.0 netmask 255.255.255.0{
range 192.168.5.2 192.168.5.50;
option broadcast-address 192.168.5.255;
option routers 192.168.5.254;
option domain-name "monitoring.org";
one-lease-per-client on;
option domain-name-servers 192.168.5.254;
option smtp-server 192.168.5.254;
option subnet-mask 255.255.255.0;
default-lease-time 86400;
max-lease-time 604800;
#get-lease-hostnames true;
}


dns:
acl "corpnets"{192.168.5.0/24;127.0.0.1;};
options {
directory "/usr/named";
pid-file "named.pid";
allow-query{"corpnets";};
query-source port 53;
forwarders {213.59.72.72;};
};
zone "monitoring.org" {
notify no;
type master;
file "/usr/named/monitoring.org";
#allow-query {127.0.0.1;192.168.5.0/24;};
allow-update {127.0.0.1;192.168.5.1;};
};
zone "0.0.127.IN-ADDR.ARPA"{
notify no;
type master;
file "/usr/named/monitoring-192.rev";
#allow-query {127.0.0.1;192.168.5.0/24;};
allow-update {127.0.0.1;192.168.5.1;};
};
...
Рейтинг: 0 / 0
DNS+DHCP
    #32756225
jem13
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Вот это
SeregaSУ меня 2 машины: на одной samba, dhcp на другой dns.

и это
SeregaS
zone monitoring.org. {
primary 127.0.0.1;
}

zone 5.168.192.in-addr.arpa. {
primary 127.0.0.1;
}


как то не вяжется.

Или они на одном хосте?!
...
Рейтинг: 0 / 0
DNS+DHCP
    #32756397
SeregaS
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
не не
в первом случае 192.168.5.1
...
Рейтинг: 0 / 0
DNS+DHCP
    #32756403
SeregaS
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
SeregaSне не
в первом случае 192.168.5.0
sorry :)
...
Рейтинг: 0 / 0
DNS+DHCP
    #32756534
jem13
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
ваще убери zone с dhcpd.conf, насколько я понимаю это нужно для секюрного апдейта, могу ошибаться. у меня и без них все работает.

Либо пробуй так

server-identifier geoserver.monitoring.org;

ddns-update-style interim;
update-static-leases true;


zone monitoring.org. {
primary 192.168.5.254;
}

zone 5.168.192.in-addr.arpa. {
primary 192.168.5.254;
}

subnet 192.168.5.0 netmask 255.255.255.0{
range 192.168.5.2 192.168.5.50;
option broadcast-address 192.168.5.255;
option routers 192.168.5.254;
option domain-name "monitoring.org";
one-lease-per-client on;
option domain-name-servers 192.168.5.254;
option smtp-server 192.168.5.254;
option subnet-mask 255.255.255.0;
default-lease-time 86400;
max-lease-time 604800;
#get-lease-hostnames true;
}
...
Рейтинг: 0 / 0
DNS+DHCP
    #32756561
jem13
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
DYNAMIC DNS UPDATE SECURITY
       When  you set your DNS server up to allow updates from the DHCP server,
       you may be exposing it to unauthorized updates.   To  avoid  this,  you
       should  use  TSIG  signatures  -  a method of cryptographically signing
       updates using a shared secret key.   As long as you protect the secrecy
       of  this key, your updates should also be secure.   Note, however, that
       the DHCP protocol itself provides no security,  and  that  clients  can
       therefore  provide information to the DHCP server which the DHCP server
       will then use in its updates, with  the  constraints  described  previ-
       ously.

       The  DNS  server  must be configured to allow updates for any zone that
       the DHCP server will be updating.  For example, let us say that clients
       in  the  sneedville.edu  domain  will  be  assigned  addresses  on  the
        10 . 10 . 17 . 0 / 24  subnet.  In that case, you will need  a  key  declaration
       for  the  TSIG  key you will be using, and also two zone declarations -
       one for the zone containing A records that will be updates and one  for
       the zone containing PTR records - for ISC BIND, something like this:

       key DHCP_UPDATER {
         algorithm HMAC-MD5.SIG-ALG.REG.INT;
         secret pRP5FapFoJ95JEL06sv4PQ==;
       };

       zone "example.org" {
            type master;
            file "example.org.db";
            allow-update { key DHCP_UPDATER; };
       };

       zone "17.10.10.in-addr.arpa" {
            type master;
            file "10.10.17.db";
            allow-update { key DHCP_UPDATER; };
       };

       You will also have to configure your DHCP server to do updates to these
       zones.   To do so,  you  need  to  add  something  like  this  to  your
       dhcpd.conf file:

       key DHCP_UPDATER {
         algorithm HMAC-MD5.SIG-ALG.REG.INT;
         secret pRP5FapFoJ95JEL06sv4PQ==;
       };

       zone EXAMPLE.ORG. {
         primary  127 . 0 . 0 . 1 ;
         key DHCP_UPDATER;
       }

       zone  17 . 127 . 10 .in-addr.arpa. {
         primary  127 . 0 . 0 . 1 ;
         key DHCP_UPDATER;
       }

       Note that the zone declarations have to correspond to authority records
       in your name server - in the above example, there must be an SOA record
       for  "example.org." and for "17.10.10.in-addr.arpa.".   For example, if
       there were a subdoman "foo.example.org" with no seperate SOA, you could
       not  write a zone declaration for "foo.example.org."  Also keep in mind
       that zone names in your DHCP configuration should end in a "."; this is
       the  preferred  syntax.  If you do not end your zone name in a ".", the
       DHCP server will figure it out.  Also note that in the DHCP  configura-
       tion,  zone names are not encapsulated in quotes where there are in the
       DNS configuration.

       You should choose your own secret key, of course.  The ISC BIND  8  and  9 
       distributions  come  with  a  program for generating secret keys called
       dnssec-keygen.  The version that comes with BIND  9  is likely to produce
       a  substantially more random key, so we recommend you use that one even
       if you are not using BIND  9  as your DNS server.  If you are using  BIND
        9 's dnssec-keygen, the above key would be created as follows:
            dnssec-keygen -a HMAC-MD5 -b  128  -n USER DHCP_UPDATER
...
Рейтинг: 0 / 0
DNS+DHCP
    #32757177
SeregaS
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
всем огромный сенкс, я просто тупил %(.
...
Рейтинг: 0 / 0
7 сообщений из 7, страница 1 из 1
Форумы / Unix-системы [игнор отключен] [закрыт для гостей] / DNS+DHCP
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]