Torna indietro   Hardware Upgrade Forum > Software > Linux, Unix, OS alternativi

Tutti gli articoli Tutte le news

Vai al Forum
Rispondi
 
Strumenti
Old 18-05-2007, 07:45   #1
vampirodolce1
Senior Member
 
L'Avatar di vampirodolce1
 
Iscritto dal: Jul 2006
Messaggi: 1175
Problema BIND (rndkey)

Buongiorno a tutti, sto provando a configurare BIND ma c'e' ancora qualcosa che non va. In particolare, ricevo questo errore e il servizio non parte:

rndc: connection to remote host closed This may indicate that the remote server is using an older version of the command protocol, this host is not authorized to connect, or the key is invalid.

Ecco /etc/bind/rndc.conf (uso Debian), compresi i suggerimenti dati in fase di creazione del file:
Quote:
# Start of rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "Aep/udRjLWOaUzluorzqFQ==";
};

options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};

# End of rndc.conf

# Use with the following in named.conf, adjusting the allow list as needed:
# key "rndc-key" {
# algorithm hmac-md5;
# secret "Aep/udRjLWOaUzluorzqFQ==";
# };
#
# controls {
# inet 127.0.0.1 port 953
# allow { 127.0.0.1; } keys { "rndc-key"; };
# };
# End of named.conf
e io ho fatto come c'era scritto, ossia ho copiato le seguenti righe all'interno di named.conf:
Quote:
key "rndc-key" {
algorithm hmac-md5;
secret "Aep/udRjLWOaUzluorzqFQ==";
};


controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
Tuttavia ogni volta che provo a dare 'rndc reload' oppure '/etc/init.d/bind9 restart' ottengo il messaggio di errore di cui sopra. Nmap riporta le porte dominio e 953 aperte.
Su knoppix ho notato che rndc.conf e rndc.key contengono due chiavi diverse, mentre in named.conf non c'e' nulla con riferimento alla stringa 'secret'. Ecco infatti un `grep secret rndc.*`:
Quote:
rndc.conf: secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
rndc.key: secret "49khYQyHfO4AqYO9K7by6Q==";
Io ho seguito passo passo le istruzioni del BIND 9 Administrator Reference Manual, cosa ho sbagliato?

grazie


P.S. Nel titolo volevo scrivere Problema BIND (rndckey)
__________________
Enermax Staray CS-046 ECA3170-BL, Cooler Master RS-700-AMBA-D3, ASUS P6X58D-E, Core i7 950, Kingston 6GB DDR3 1600 HyperX, Gainward GTX 460 1GB GS, LG BH10LS30, 1TB WD1002FAEX, 2TB WD20EARS, 3TB WD30EZRX, 4TB WD40EFRX, 2x2TB WDBAAU0020HBK, Samsung SCX-3200, Netgear DGN2200
[Debian 7.0 Wheezy] Installazione, consigli e trucchi

Ultima modifica di vampirodolce1 : 18-05-2007 alle 07:54.
vampirodolce1 č offline   Rispondi citando il messaggio o parte di esso
 Rispondi


Tutti gli articoli Tutte le news Tutti i download

Strumenti

Regole
Non Puoi aprire nuove discussioni
Non Puoi rispondere ai messaggi
Non Puoi allegare file
Non Puoi modificare i tuoi messaggi

Il codice vB č On
Le Faccine sono On
Il codice [IMG] č On
Il codice HTML č Off
Vai al Forum


Tutti gli orari sono GMT +1. Ora sono le: 06:35.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Served by www3v