Thanks to visit codestin.com
Credit goes to github.com

Skip to content

nt_import.pl does not import reverse zones correct #101

@pertoft

Description

@pertoft

Reverse zone records starting with "0" are not imported. E.g. 0.138.80.85.in-addr.arpa is not imported.

Example reverse zone file:

$TTL 3600
@ IN SOA ns1.cybercity.dk. zonec.cybercity.dk. (
1439555627 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
3600) ; Minimum
@ NS ns1.cybercity.dk.
@ NS ns2.cybercity.dk.
0 PTR 0x55508a00.adsl.cybercity.dk.
1 PTR 0x55508a01.adsl.cybercity.dk.
2 PTR 0x55508a02.adsl.cybercity.dk.
3 PTR 0x55508a03.adsl.cybercity.dk.

Starting import using: /home/pto/home/namedb/gen/test.conf
zone: 138.80.85.in-addr.arpa from gen/d6/P.138.80.85.in-addr.arpa_test
zid: 8752
NS : 138.80.85.in-addr.arpa ns1.cybercity.dk.
NS : 138.80.85.in-addr.arpa ns2.cybercity.dk.
NS : 138.80.85.in-addr.arpa ns3.cybercity.dk.
NS : 138.80.85.in-addr.arpa ns4.cybercity.dk.
PTR : 0.138.80.85.in-addr.arpa 0x55508a00.adsl.cybercity.dk
record exists
PTR : 1.138.80.85.in-addr.arpa 0x55508a01.adsl.cybercity.dk
0
1 PTR 0x55508a01.adsl.cybercity.dk.
record exists
PTR : 2.138.80.85.in-addr.arpa 0x55508a02.adsl.cybercity.dk
0
2 PTR 0x55508a02.adsl.cybercity.dk.
record exists
PTR : 3.138.80.85.in-addr.arpa 0x55508a03.adsl.cybercity.dk
0
3 PTR 0x55508a03.adsl.cybercity.dk.
record exists

SQL data from zone nt_zone_record:

773909 8752 1 3600 NULL 12 0x55508a01.adsl.cybercity.dk. NULL NULL NULL NULL NULL 0
774020 8752 2 3600 NULL 12 0x55508a02.adsl.cybercity.dk. NULL NULL NULL NULL NULL 0
774087 8752 3 3600 NULL 12 0x55508a03.adsl.cybercity.dk. NULL NULL NULL NULL NULL 0

The zone is not shown in nictool either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions