AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / user-264052

goodguyAbaddon's questions

Martin Hope
goodguyAbaddon
Asked: 2017-12-04 02:11:40 +0800 CST

problema de resolução reversa do bind9

  • 0

eu uso o bind para configuração simples na minha lan, apenas um cache para o domínio externo e o resolvedor interno da LAN , o problema é que a saída do resolvedor reverso está errada, ele deve retornar apenas o nome do domínio; parece que por algum erro o servidor não encontra recursos para responder corretamente, mas nos logs não encontrei nenhum erro; Colei aqui abaixo a configuração e saída do nslookup:
output nslookup:

$ nslookup server1.example.com

Server:     192.168.1.131
Address:    192.168.1.131#53

Name:   server1.example.com
Address: 192.168.1.130

$ nslookup 192.168.1.130 

130.1.168.192.in-addr.arpa  name = server1.example.com.1.168.192.in-addr.arpa.

configuração de ligação:

// This is the primary configuration file for the BIND DNS server named.

options {
    directory "/opt/etc/bind";
    pid-file "/opt/etc/bind/named.pid";

    query-source address * port 53;

    forwarders {
        // OPENDNS dns
        208.67.222.222;
        208.67.220.220;
        // GOOGLE dns
        8.8.8.8;
        8.8.4.4;
    };

    auth-nxdomain no;    # conform to RFC1035
};

logging {
        channel update_debug {
                file "/var/log/bind_update_debug.log" versions 3 size 100k;
                severity debug;
                print-severity  yes;
                print-time      yes;
        };
        channel security_info {
                file "/var/log/bind_security_info.log" versions 1 size 100k;
                severity info;
                print-severity  yes;
                print-time      yes;
        };
        channel bind_log {
                file "/var/log/bind.log" versions 3 size 1m;
                severity info;
                print-category  yes;
                print-severity  yes;
                print-time      yes;
        };
        channel query_log {
            file "/var/log/bind_query.log" versions 3 size 1m;
            severity debug 3;
            print-category  yes;
                    print-severity  yes;
            print-time yes;
        };

        category default { bind_log; };
        category queries { query_log; };
        category lame-servers { null; };
        category update { update_debug; };
        category update-security { update_debug; };
        category security { security_info; };
};

// prime the server with knowledge of the root servers
zone "." {
    type hint;
    file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
    type master;
    file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
    type master;
    file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
    type master;
    file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
    type master;
    file "/etc/bind/db.255";
};

zone "example.com" {
    type master;
    file "/etc/bind/db.example.com";
    notify no;
};

zone "1.168.192.in-addr.arpa" {
    type master;
    file "/etc/bind/db.192";
    notify no;
};

db.example.com:

;
; BIND data file for local loopback interface
;
$TTL    604800
@   IN  SOA example.com. admin.example.com. (
                  2     ; Serial
                 1D     ; Refresh
                 1H     ; Retry
                 1W     ; Expire
                 3H )   ; Negative Cache TTL

; name server - NS records
    IN  NS  ns.example.com.

; name server - A records
ns  IN  A   192.168.1.131

; 192.168.1.0/255 - A records
laptop  IN  A   192.168.1.102
server1 IN  A   192.168.1.130
server2 IN  A   192.168.1.131
router  IN  A   192.168.1.1

db.192:

;
; BIND reverse data file for empty rfc1918 zone 
;
$TTL    604800
@   IN  SOA example.com. admin.example.com. (
                  2     ; Serial
                 1D     ; Refresh
                 1H     ; Retry
                 1W     ; Expire
                 3H )   ; Negative Cache TTL
; name server
    IN  NS  ns.example.com.

; name server PTR record
131 IN  PTR ns.example.com

; PTR Records
102 IN  PTR laptop.example.com
130 IN  PTR server1.example.com
131 IN  PTR server2.example.com
1   IN  PTR router.example.com

Alguém pode sugerir onde está o erro? É um erro de configuração trivial? THX

dns bind9
  • 1 respostas
  • 979 Views

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Possível firmware ausente /lib/firmware/i915/* para o módulo i915

    • 3 respostas
  • Marko Smith

    Falha ao buscar o repositório de backports jessie

    • 4 respostas
  • Marko Smith

    Como exportar uma chave privada GPG e uma chave pública para um arquivo

    • 4 respostas
  • Marko Smith

    Como podemos executar um comando armazenado em uma variável?

    • 5 respostas
  • Marko Smith

    Como configurar o systemd-resolved e o systemd-networkd para usar o servidor DNS local para resolver domínios locais e o servidor DNS remoto para domínios remotos?

    • 3 respostas
  • Marko Smith

    apt-get update error no Kali Linux após a atualização do dist [duplicado]

    • 2 respostas
  • Marko Smith

    Como ver as últimas linhas x do log de serviço systemctl

    • 5 respostas
  • Marko Smith

    Nano - pule para o final do arquivo

    • 8 respostas
  • Marko Smith

    erro grub: você precisa carregar o kernel primeiro

    • 4 respostas
  • Marko Smith

    Como baixar o pacote não instalá-lo com o comando apt-get?

    • 7 respostas
  • Martin Hope
    user12345 Falha ao buscar o repositório de backports jessie 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl Por que a maioria dos exemplos do systemd contém WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky Como exportar uma chave privada GPG e uma chave pública para um arquivo 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll status systemctl mostra: "Estado: degradado" 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim Como podemos executar um comando armazenado em uma variável? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S Por que /dev/null é um arquivo? Por que sua função não é implementada como um programa simples? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 Como ver as últimas linhas x do log de serviço systemctl 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - pule para o final do arquivo 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla Por que verdadeiro e falso são tão grandes? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis Substitua a string em um arquivo de texto enorme (70 GB), uma linha 2017-12-30 06:58:33 +0800 CST

Hot tag

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve