LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   *** Can't find 22.78.224.10.in-addr.arpa.: No answer (https://www.linuxquestions.org/questions/linux-newbie-8/%2A%2A%2A-cant-find-22-78-224-10-in-addr-arpa-no-answer-4175731908/)

Yo man 12-18-2023 06:50 AM

*** Can't find 22.78.224.10.in-addr.arpa.: No answer
 
Bonjour chers tous
j'ai mis un server dns en place sous Centos 6.10. lors de mes tests je tombe sur une erreur au niveau de la zone inverse: *** Can't find 22.78.224.10.in-addr.arpa.: No answer

j'ai vraiment besion de votre aide.

merci.

voici mes config:

named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
listen-on port 53 { 127.0.0.1; 10.224.78.22; };
# listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; 10.224.78.0/24; };
recursion yes;
empty-zones-enable yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." IN {
type hint;
file "named.ca";
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";


cat /etc/named.rfc1912.zones
// named.rfc1912.zones:

zone "global.cs" IN {
type master;
file "global.cs";
allow-update { 10.224.78.0/24; };
};

zone "78.224.10.in-addr.arpa" IN {
type master;
file "db.78.224.10";
allow-update { none; };
};



voici ma zone directe

cat /var/named/global.cs
$TTL 3H
@ IN SOA serverdns.global.cs. root.serverdns.global.cs. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS serverdns.global.cs.
@ IN A 10.224.78.22
serverdns IN A 10.224.78.22
www IN CNAME serverdns.global.cs.

et ma zone inverse

cat /var/named/db.78.224.10
$TTL 3H
@ IN SOA serverdns.global.cs. root.serverdns.global.cs. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS serverdns.global.cs.
@ IN PTR global.cs.
global.cs IN PTR 10.224.78.22
6 IN PTR serverdns.global.cs.





nslookup serverdns
Server: 10.224.78.22
Address: 10.224.78.22#53

Name: serverdns.global.cs
Address: 10.224.78.22

# nslookup 10.224.78.22
Server: 10.224.78.22
Address: 10.224.78.22#53

*** Can't find 22.78.224.10.in-addr.arpa.: No answer

merci

bathory 12-19-2023 04:23 AM

English please!

Your reverse zone is wrong
cat /var/named/db.78.224.10
Quote:

$TTL 3H
@ IN SOA serverdns.global.cs. root.serverdns.global.cs. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS serverdns.global.cs.
@ IN PTR global.cs.
global.cs IN PTR 10.224.78.22
6 IN PTR serverdns.global.cs.
The line in red is wrong and the line in bold above must read:
Code:

22 PTR serverdns.global.cs.

TB0ne 12-19-2023 10:31 AM

Quote:

Originally Posted by Yo man (Post 6471114)
Bonjour chers tous
j'ai mis un server dns en place sous Centos 6.10. lors de mes tests je tombe sur une erreur au niveau de la zone inverse: *** Can't find 22.78.224.10.in-addr.arpa.: No answer
j'ai vraiment besion de votre aide. merci. voici mes config:
Code:

named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
        listen-on port 53 { 127.0.0.1; 10.224.78.22; };
#      listen-on-v6 port 53 { ::1; };
        directory      "/var/named";
        dump-file      "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        allow-query    { localhost; 10.224.78.0/24; };
        recursion yes;
        empty-zones-enable yes;
        dnssec-enable yes;
        dnssec-validation yes;
        dnssec-lookaside auto;

        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.iscdlv.key";

        managed-keys-directory "/var/named/dynamic";
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
        type hint;
        file "named.ca";
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";


cat /etc/named.rfc1912.zones
// named.rfc1912.zones:

zone "global.cs" IN {
        type master;
        file "global.cs";
        allow-update { 10.224.78.0/24; };
};

zone "78.224.10.in-addr.arpa" IN {
        type master;
        file "db.78.224.10";
        allow-update { none; };
};



voici ma zone directe

cat /var/named/global.cs
$TTL 3H
@      IN SOA  serverdns.global.cs. root.serverdns.global.cs. (
                                        0      ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
@              IN      NS      serverdns.global.cs.
@              IN      A      10.224.78.22
serverdns      IN      A      10.224.78.22
www            IN      CNAME  serverdns.global.cs.

et ma zone inverse

 cat /var/named/db.78.224.10
$TTL 3H
@      IN SOA  serverdns.global.cs. root.serverdns.global.cs. (
                                        0      ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
@              IN      NS      serverdns.global.cs.
@              IN      PTR    global.cs.
global.cs      IN      PTR    10.224.78.22
6              IN      PTR    serverdns.global.cs.





 nslookup serverdns
Server:        10.224.78.22
Address:        10.224.78.22#53

Name:  serverdns.global.cs
Address: 10.224.78.22

# nslookup 10.224.78.22
Server:        10.224.78.22
Address:        10.224.78.22#53

*** Can't find 22.78.224.10.in-addr.arpa.: No answer

merci

Read the LQ rules; this is an English only forum.


All times are GMT -5. The time now is 09:21 PM.