BIND Problemas com conexão recusada

1
host -l mycity.example.com
;; Connection to 10.0.1.12#53(10.0.1.12) for mycity.example.com failed: connection refused.

Aqui está o meu arquivo named.conf.options:

acl "trusted" {
    10.0.1.0/16; 
    localhost;
    localnets;
};

options {
    directory "/var/cache/bind";

    recursion yes;
    allow-recursion { trusted; };
    allow-query { any; }
    allow-query-cache { trusted; }
    listen-on { 10.0.1.12; };
    allow-transfer {trusted; };

// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk.  See http://www.kb.cert.org/vuls/id/800113

// If your ISP provided one or more IP addresses for stable 
// nameservers, you probably want to use them as forwarders.  
// Uncomment the following block, and insert the addresses replacing 
// the all-0's placeholder.

forwarders {    
    10.0.1.1;
    8.8.8.8;
    8.8.4.4;
};

//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys.  See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation no;


auth-nxdomain no;    # conform to RFC1035
listen-on-v6 { any; };
};

FYI, apenas servidores internos podem obter este servidor de nomes.

O que estou fazendo errado? : (

Mais informações sobre o status do Bind9:

Apr 26 00:37:12 myserver1 named[15933]: client 10.0.1.12#38844
(myserver2.mycity.example.com): bad zone transfer request:
'myserver2.mycity.example.com/IN': non-authoritative zone (NOTAUTH)
    
por Peter S 24.04.2016 / 11:43

1 resposta

0

OK, então a resposta é simples: Ao usar o comando host com a opção -l, você não usa um nome de host como parâmetro. Você usa um nome de domínio totalmente qualificado e, em seguida, retorna todos os hosts. Uma vez que eu digitei o comando da seguinte forma, tudo funcionou como esperado:

host -l mycity.example.com

server1.mycity.example.com
server2.mycity.example.com
    
por Peter S 26.04.2016 / 18:15