The Network People Support Forums

Other TNPI Software => NicTool => Topic started by: dinopower on June 04, 2016, 03:18:28 am

Title: sub nameservers disappeared from NicToolServer/Import/Base.pm at some point
Post by: dinopower on June 04, 2016, 03:18:28 am
We have a 2.27 install and are trying to deploy a fresh install of 2.33 on a new server.  One of our import scripts fails with this:


Can't locate object method "nameservers" via package "NicToolServer::Import::tinydns" at /root/dnsadmin-scripts/hostasaurus2nictool.pl line 16.


I discovered that in our 2.27 version, in file /usr/local/share/perl5/NicToolServer/Import/Base.pm, this exists:


sub nameservers {
    my ($self, $ns) = @_;
    return $self->{nameservers} if ! $ns;
    $self->{nameservers} = $ns;
    return $ns;
};


And in 2.33 it's not there.  Can/should I just add it back?
Title: Re: sub nameservers disappeared from NicToolServer/Import/Base.pm at some point
Post by: matt on June 10, 2016, 11:35:54 am
Yes, you can add it back if you depend on it.