Importing rDNS v6 zone with

Started by hrncir, September 27, 2016, 03:45:20 AM

Previous topic - Next topic


first I would like to thank you for your great job with NicTool. Now to the point: I have successfully imported all of zones except rDNS IPv6 ones.

Resending error:
[root@cloud-2008 server]# ./bin/ --host --user maitest --pass Loka.lCajpek --file /tmp/reverz.conf --type bind
loading type: bind

Starting import using: /tmp/reverz.conf
zone: from /tmp/ipv6
creating zone
created zone ( 333 )
NS :
The 'zone_id' parameter (undef) to NicToolServer::Import::Base::nt_create_record was an 'undef', which is not one of the allowed types: scalar
at lib/NicToolServer/Import/ line 126.
NicToolServer::Import::Base::nt_create_record(undef, 'zone_id', undef, 'type', 'NS', 'name', '', 'address', '', ...) called at lib/NicToolServer/Import/ line 109
NicToolServer::Import::BIND::zr_ns('NicToolServer::Import::BIND::Conf_Parser=HASH(0x33c3490)', 'Net::DNS::RR::NS=HASH(0x2da5578)', '') called at lib/NicToolServer/Import/ line 73
NicToolServer::Import::BIND::import_zone('NicToolServer::Import::BIND::Conf_Parser=HASH(0x33c3490)', '', '/tmp/ipv6') called at lib/NicToolServer/Import/ line 358
NicToolServer::Import::BIND::Conf_Parser::handle_zone('NicToolServer::Import::BIND::Conf_Parser=HASH(0x33c3490)', '', 'in', 'master', 'HASH(0x2a30c50)') called at /usr/local/share/perl5/BIND/ line 762
BIND::Conf_Parser::parse_zone('NicToolServer::Import::BIND::Conf_Parser=HASH(0x33c3490)') called at /usr/local/share/perl5/BIND/ line 856
BIND::Conf_Parser::parse_conf('NicToolServer::Import::BIND::Conf_Parser=HASH(0x33c3490)') called at /usr/local/share/perl5/BIND/ line 887
BIND::Conf_Parser::parse_fh('NicToolServer::Import::BIND::Conf_Parser=HASH(0x33c3490)', 'GLOB(0x2da4c60)') called at lib/NicToolServer/Import/ line 54
NicToolServer::Import::BIND::import_records('NicToolServer::Import::BIND=HASH(0x1f88280)', '/tmp/reverz.conf') called at ./bin/ line 61

bind test config file includes this:
zone "" {
type master; allow-query { any; };
file "/tmp/ipv6";

My zone:
$TTL 300
@ 86400 IN SOA (
2016051601 ;Serial
7200 ; Refresh
1800 ; Retry
1209600 ; Expire
300 ) ; Minimum
@ 172800 IN NS
@ 172800 IN NS
@ 172800 IN NS PTR PTR

Well, zone is created without any problem but after it its stucked on adding NS i guess. I would be very glad for any comment on this.
Thank you !


Odds are, that import logic just needs some more IPv6 attention. I haven't had time to give it yet.