BIND Reverse DNS Ignoring out-of-zone data

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I have a simple, single-address reverse DNS PTR for 10.142.0.2 to gbox.example.com record set up like so:



# cat /var/named/zones/0.142.10.in-addr.arpa.db

$ORIGIN .
$TTL 1D
0.142.10.in-addr.arpa. IN SOA gbox.example.com. dnsadmin.example.com. (
2018111401 ;
12h ;
5m ;
1w ;
3h ;
)

NS gbox.example.com.

$ORIGIN 0.142.10.in-addr.arpa.
2 PTR gbox.example.com.


and when I run:



# named-checkzone 2.0.142.10.in-addr.arpa /var/named/zones/0.142.10.in-addr.arpa.db
/var/named/zones/0.142.10.in-addr.arpa.db:5: ignoring out-of-zone data (0.142.10.in-addr.arpa)
zone 2.0.142.10.in-addr.arpa/IN: has 0 SOA records
zone 2.0.142.10.in-addr.arpa/IN: has no NS records
zone 2.0.142.10.in-addr.arpa/IN: not loaded due to errors.
# named-checkzone 10.142.0.2 /var/named/zones/0.142.10.in-addr.arpa.db
/var/named/zones/0.142.10.in-addr.arpa.db:5: ignoring out-of-zone data (0.142.10.in-addr.arpa)
/var/named/zones/0.142.10.in-addr.arpa.db:16: ignoring out-of-zone data (2.0.142.10.in-addr.arpa)
zone 10.142.0.2/IN: has 0 SOA records
zone 10.142.0.2/IN: has no NS records
zone 10.142.0.2/IN: not loaded due to errors.


And for the life of me I can't figure out what is going on here.



$ cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)
$bind -v
BIND 9.9.4-RedHat-9.9.4-61.el7_5.1 (Extended Support Version)


EDIT: I tried an alternate syntax version of the zone file with no change:



# cat /var/named/zones/0.142.10.in-addr.arpa.db

$ORIGIN 0.142.10.in-addr.arpa.
$TTL 1D
@ IN SOA gbox.example.com. dnsadmin.example.com. (
2018111401 ;
12h ;
5m ;
1w ;
3h ;
)

NS gbox.example.com.

2 PTR gbox.example.com.


EDIT 2: Integrated it into named.conf:



zone "0.142.10.in-addr.arpa" 
type master;
allow-transfer none; ;
notify no;
file "/var/named/zones/0.142.10.in-addr.arpa.db";
;


and I still get the same error with named-checkzone










share|improve this question























  • I'm not sure I know what you mean? I'm not currently loading it anywhere, since it doesn't work in the test.
    – Chris
    yesterday











  • 0.0.10.in-addr.arpa should probably have a . after the "arpa" - 0.0.10.in-addr.arpa.
    – ivanivan
    yesterday










  • Added the . and no change. Updating question.
    – Chris
    yesterday










  • I am not loading it into named.conf yet. I am testing it with named-checkzone before adding it to named.conf because I don't want it loading a broken zone. Is there another portion of named.conf that would help?
    – Chris
    yesterday














up vote
1
down vote

favorite












I have a simple, single-address reverse DNS PTR for 10.142.0.2 to gbox.example.com record set up like so:



# cat /var/named/zones/0.142.10.in-addr.arpa.db

$ORIGIN .
$TTL 1D
0.142.10.in-addr.arpa. IN SOA gbox.example.com. dnsadmin.example.com. (
2018111401 ;
12h ;
5m ;
1w ;
3h ;
)

NS gbox.example.com.

$ORIGIN 0.142.10.in-addr.arpa.
2 PTR gbox.example.com.


and when I run:



# named-checkzone 2.0.142.10.in-addr.arpa /var/named/zones/0.142.10.in-addr.arpa.db
/var/named/zones/0.142.10.in-addr.arpa.db:5: ignoring out-of-zone data (0.142.10.in-addr.arpa)
zone 2.0.142.10.in-addr.arpa/IN: has 0 SOA records
zone 2.0.142.10.in-addr.arpa/IN: has no NS records
zone 2.0.142.10.in-addr.arpa/IN: not loaded due to errors.
# named-checkzone 10.142.0.2 /var/named/zones/0.142.10.in-addr.arpa.db
/var/named/zones/0.142.10.in-addr.arpa.db:5: ignoring out-of-zone data (0.142.10.in-addr.arpa)
/var/named/zones/0.142.10.in-addr.arpa.db:16: ignoring out-of-zone data (2.0.142.10.in-addr.arpa)
zone 10.142.0.2/IN: has 0 SOA records
zone 10.142.0.2/IN: has no NS records
zone 10.142.0.2/IN: not loaded due to errors.


And for the life of me I can't figure out what is going on here.



$ cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)
$bind -v
BIND 9.9.4-RedHat-9.9.4-61.el7_5.1 (Extended Support Version)


EDIT: I tried an alternate syntax version of the zone file with no change:



# cat /var/named/zones/0.142.10.in-addr.arpa.db

$ORIGIN 0.142.10.in-addr.arpa.
$TTL 1D
@ IN SOA gbox.example.com. dnsadmin.example.com. (
2018111401 ;
12h ;
5m ;
1w ;
3h ;
)

NS gbox.example.com.

2 PTR gbox.example.com.


EDIT 2: Integrated it into named.conf:



zone "0.142.10.in-addr.arpa" 
type master;
allow-transfer none; ;
notify no;
file "/var/named/zones/0.142.10.in-addr.arpa.db";
;


and I still get the same error with named-checkzone










share|improve this question























  • I'm not sure I know what you mean? I'm not currently loading it anywhere, since it doesn't work in the test.
    – Chris
    yesterday











  • 0.0.10.in-addr.arpa should probably have a . after the "arpa" - 0.0.10.in-addr.arpa.
    – ivanivan
    yesterday










  • Added the . and no change. Updating question.
    – Chris
    yesterday










  • I am not loading it into named.conf yet. I am testing it with named-checkzone before adding it to named.conf because I don't want it loading a broken zone. Is there another portion of named.conf that would help?
    – Chris
    yesterday












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have a simple, single-address reverse DNS PTR for 10.142.0.2 to gbox.example.com record set up like so:



# cat /var/named/zones/0.142.10.in-addr.arpa.db

$ORIGIN .
$TTL 1D
0.142.10.in-addr.arpa. IN SOA gbox.example.com. dnsadmin.example.com. (
2018111401 ;
12h ;
5m ;
1w ;
3h ;
)

NS gbox.example.com.

$ORIGIN 0.142.10.in-addr.arpa.
2 PTR gbox.example.com.


and when I run:



# named-checkzone 2.0.142.10.in-addr.arpa /var/named/zones/0.142.10.in-addr.arpa.db
/var/named/zones/0.142.10.in-addr.arpa.db:5: ignoring out-of-zone data (0.142.10.in-addr.arpa)
zone 2.0.142.10.in-addr.arpa/IN: has 0 SOA records
zone 2.0.142.10.in-addr.arpa/IN: has no NS records
zone 2.0.142.10.in-addr.arpa/IN: not loaded due to errors.
# named-checkzone 10.142.0.2 /var/named/zones/0.142.10.in-addr.arpa.db
/var/named/zones/0.142.10.in-addr.arpa.db:5: ignoring out-of-zone data (0.142.10.in-addr.arpa)
/var/named/zones/0.142.10.in-addr.arpa.db:16: ignoring out-of-zone data (2.0.142.10.in-addr.arpa)
zone 10.142.0.2/IN: has 0 SOA records
zone 10.142.0.2/IN: has no NS records
zone 10.142.0.2/IN: not loaded due to errors.


And for the life of me I can't figure out what is going on here.



$ cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)
$bind -v
BIND 9.9.4-RedHat-9.9.4-61.el7_5.1 (Extended Support Version)


EDIT: I tried an alternate syntax version of the zone file with no change:



# cat /var/named/zones/0.142.10.in-addr.arpa.db

$ORIGIN 0.142.10.in-addr.arpa.
$TTL 1D
@ IN SOA gbox.example.com. dnsadmin.example.com. (
2018111401 ;
12h ;
5m ;
1w ;
3h ;
)

NS gbox.example.com.

2 PTR gbox.example.com.


EDIT 2: Integrated it into named.conf:



zone "0.142.10.in-addr.arpa" 
type master;
allow-transfer none; ;
notify no;
file "/var/named/zones/0.142.10.in-addr.arpa.db";
;


and I still get the same error with named-checkzone










share|improve this question















I have a simple, single-address reverse DNS PTR for 10.142.0.2 to gbox.example.com record set up like so:



# cat /var/named/zones/0.142.10.in-addr.arpa.db

$ORIGIN .
$TTL 1D
0.142.10.in-addr.arpa. IN SOA gbox.example.com. dnsadmin.example.com. (
2018111401 ;
12h ;
5m ;
1w ;
3h ;
)

NS gbox.example.com.

$ORIGIN 0.142.10.in-addr.arpa.
2 PTR gbox.example.com.


and when I run:



# named-checkzone 2.0.142.10.in-addr.arpa /var/named/zones/0.142.10.in-addr.arpa.db
/var/named/zones/0.142.10.in-addr.arpa.db:5: ignoring out-of-zone data (0.142.10.in-addr.arpa)
zone 2.0.142.10.in-addr.arpa/IN: has 0 SOA records
zone 2.0.142.10.in-addr.arpa/IN: has no NS records
zone 2.0.142.10.in-addr.arpa/IN: not loaded due to errors.
# named-checkzone 10.142.0.2 /var/named/zones/0.142.10.in-addr.arpa.db
/var/named/zones/0.142.10.in-addr.arpa.db:5: ignoring out-of-zone data (0.142.10.in-addr.arpa)
/var/named/zones/0.142.10.in-addr.arpa.db:16: ignoring out-of-zone data (2.0.142.10.in-addr.arpa)
zone 10.142.0.2/IN: has 0 SOA records
zone 10.142.0.2/IN: has no NS records
zone 10.142.0.2/IN: not loaded due to errors.


And for the life of me I can't figure out what is going on here.



$ cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)
$bind -v
BIND 9.9.4-RedHat-9.9.4-61.el7_5.1 (Extended Support Version)


EDIT: I tried an alternate syntax version of the zone file with no change:



# cat /var/named/zones/0.142.10.in-addr.arpa.db

$ORIGIN 0.142.10.in-addr.arpa.
$TTL 1D
@ IN SOA gbox.example.com. dnsadmin.example.com. (
2018111401 ;
12h ;
5m ;
1w ;
3h ;
)

NS gbox.example.com.

2 PTR gbox.example.com.


EDIT 2: Integrated it into named.conf:



zone "0.142.10.in-addr.arpa" 
type master;
allow-transfer none; ;
notify no;
file "/var/named/zones/0.142.10.in-addr.arpa.db";
;


and I still get the same error with named-checkzone







centos dns bind






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday

























asked yesterday









Chris

246211




246211











  • I'm not sure I know what you mean? I'm not currently loading it anywhere, since it doesn't work in the test.
    – Chris
    yesterday











  • 0.0.10.in-addr.arpa should probably have a . after the "arpa" - 0.0.10.in-addr.arpa.
    – ivanivan
    yesterday










  • Added the . and no change. Updating question.
    – Chris
    yesterday










  • I am not loading it into named.conf yet. I am testing it with named-checkzone before adding it to named.conf because I don't want it loading a broken zone. Is there another portion of named.conf that would help?
    – Chris
    yesterday
















  • I'm not sure I know what you mean? I'm not currently loading it anywhere, since it doesn't work in the test.
    – Chris
    yesterday











  • 0.0.10.in-addr.arpa should probably have a . after the "arpa" - 0.0.10.in-addr.arpa.
    – ivanivan
    yesterday










  • Added the . and no change. Updating question.
    – Chris
    yesterday










  • I am not loading it into named.conf yet. I am testing it with named-checkzone before adding it to named.conf because I don't want it loading a broken zone. Is there another portion of named.conf that would help?
    – Chris
    yesterday















I'm not sure I know what you mean? I'm not currently loading it anywhere, since it doesn't work in the test.
– Chris
yesterday





I'm not sure I know what you mean? I'm not currently loading it anywhere, since it doesn't work in the test.
– Chris
yesterday













0.0.10.in-addr.arpa should probably have a . after the "arpa" - 0.0.10.in-addr.arpa.
– ivanivan
yesterday




0.0.10.in-addr.arpa should probably have a . after the "arpa" - 0.0.10.in-addr.arpa.
– ivanivan
yesterday












Added the . and no change. Updating question.
– Chris
yesterday




Added the . and no change. Updating question.
– Chris
yesterday












I am not loading it into named.conf yet. I am testing it with named-checkzone before adding it to named.conf because I don't want it loading a broken zone. Is there another portion of named.conf that would help?
– Chris
yesterday




I am not loading it into named.conf yet. I am testing it with named-checkzone before adding it to named.conf because I don't want it loading a broken zone. Is there another portion of named.conf that would help?
– Chris
yesterday










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










You have created the zone '0.142.10.in-addr.arpa', so you have to check that one:



named-checkzone 0.142.10.in-addr.arpa /var/named/zones/0.142.10.in-addr.arpa.db





share|improve this answer




















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481518%2fbind-reverse-dns-ignoring-out-of-zone-data%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote



    accepted










    You have created the zone '0.142.10.in-addr.arpa', so you have to check that one:



    named-checkzone 0.142.10.in-addr.arpa /var/named/zones/0.142.10.in-addr.arpa.db





    share|improve this answer
























      up vote
      3
      down vote



      accepted










      You have created the zone '0.142.10.in-addr.arpa', so you have to check that one:



      named-checkzone 0.142.10.in-addr.arpa /var/named/zones/0.142.10.in-addr.arpa.db





      share|improve this answer






















        up vote
        3
        down vote



        accepted







        up vote
        3
        down vote



        accepted






        You have created the zone '0.142.10.in-addr.arpa', so you have to check that one:



        named-checkzone 0.142.10.in-addr.arpa /var/named/zones/0.142.10.in-addr.arpa.db





        share|improve this answer












        You have created the zone '0.142.10.in-addr.arpa', so you have to check that one:



        named-checkzone 0.142.10.in-addr.arpa /var/named/zones/0.142.10.in-addr.arpa.db






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered yesterday









        Harm

        662




        662



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481518%2fbind-reverse-dns-ignoring-out-of-zone-data%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?