Recent posts

#31
NicTool / default zone record search to ...
Last post by moebius - June 02, 2015, 06:09:26 PM
I would like to alter the search functionality of the resource record search to match on both the Name and Address column. While this is available via the Advanced Search.. I would like this to be default functionality. Can anyone point me in the right direction?
#32
NicTool / CentOS Guide
Last post by MHammett - May 30, 2015, 09:11:23 AM
I have some recommendations of things to change and some issues I found when following the CentOS 7 guide.


  • Will have to modify seLinux to permit httpd to run on port 8082 (semanage port -m -t http_port_t -p tcp 8082) (although maybe the later nictool.pp made my efforts wasted)
  • To open the firewall to httpd:  firewall-cmd --permanent --zone=public --add-service=http
  • add something like the below section on mod_authz_core to z_nictool.conf to allow people to actually get to the web server
  • Probably forgot some more




   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
#       Require ip 127.0.0.1
#       Require ip ::1
       Require all granted
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 127.0.0.1
     Allow from ::1
   </IfModule>
#33
NicTool / Re: error in install & unable ...
Last post by matt - May 14, 2015, 12:29:36 AM
Hey ben,
See https://www.tnpi.net/support/forums/index.php?topic=1053.0, which has info about that MySQL error you're getting.
Matt
#34
NicTool / Re: error in install & unable ...
Last post by rainer_d - May 08, 2015, 02:42:24 AM
I think you need to try with MySQL 5.5, MariaDB 5.5 (which I'm using) or Percona 5.5.
Is MySQL5.6 the default now?
I build my own packages, so I don't really care about the defaults because I've defined my own.
#35
NicTool / error in install & unable to l...
Last post by benemanuel - May 05, 2015, 07:28:33 AM
in Configure MySQL
perl create_tables.pl
it dies on

     /* CONSTRAINT `nt_zone_record_ibfk_1` FOREIGN KEY (`nt_zone_id`) REFERENCES `nt_zone` (`nt_zone_id`) ON DELETE CASCADE ON UPDATE CASCADE */
) DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPRESSED;DBD::mysql::db do failed: Specified key was too long; max key length is 767 bytes at create_tables.pl line 88, <$fh> line 69.
Specified key was too long; max key length is 767 bytes at create_tables.pl line 88, <$fh> line 69.

also but not necessarily connected, after continuing until the end. the web interface doesn't let me login. with this error
SOAP: fault: Can't use an undefined value as an ARRAY reference at /usr/local/lib/perl5/site_perl/NicToolServer.pm line 1523.

technical info:
freebsd 10.1
mysql_server56
#36
NicTool / Importing with zone2nic fails
Last post by rainer_d - March 13, 2015, 09:59:46 AM
Hi,

I'm trying to import zones by axfr'ing them from the original nameserver.

I use NicTool 2.31.

When I run it, I get:


./zone2nic.pl -z zonename.domain -a -s our.ns                                                                                                         
Name "NicToolServerAPI::use_https_authentication" used only once: possible typo at ./zone2nic.pl line 62.
Logged in as Import-User
Importing zonename.domain:
Cannot encode unnamed element as 'hash'. Will be encoded as 'map' instead
300 - Sanity error: The mailaddr format replaces the @ with a . (dot).
   *** Failed to create zonename.domain: Sanity error : The mailaddr format replaces the @ with a . (dot).


I tried replacing the files with the stuff from this commit:
https://github.com/msimerson/NicTool/commit/e5abad75fc86b423c16dd9a83e8efe5b10c0a2bb

But it does not help, I still get that error-message.

The SOA-record looks like this:

zonename.domain.   86400   IN   SOA   our.ns. postmaster.our.domain. 2013081501 10800 3600 604800 86400

Any advice?
#37
NicTool / Re: Web-Interface reports char...
Last post by rainer_d - March 11, 2015, 10:07:15 AM
Well, I just had time to check.
What I can do is create a record where the comment has umlauts.
What I can't do is create a zone where the comment has umlauts. I can create it, but the umlauts are garbled - ööö becomes ööö.

The webserver sends
text/html; charset=ISO-8859-1
as Content-Type
But the HTML of t he reply-page seems to say utf8.

I really wonder where it sets the content-type.


#38
NicTool / Re: Web-Interface reports char...
Last post by matt - February 27, 2015, 05:31:40 PM
Hmm, I distinctly recall creating some comments with ü in them just to test, and it worked for me. I'm not sure why it's not working for you. You should be able to inspect the HTTP request with your browser in debug mode and get some more info, such as looking at the HTTP headers, which *should* have utf8 specified in them.
#39
NicTool / Re: NicTool broken after Ubunt...
Last post by pertoft - January 28, 2015, 05:20:21 AM
I have reverted to a snapshot with Ubuntu 12.04 LTS - and it works again. Maybe you should make a warning that NicTool does not work on 14.04 LTS.

Thanks
Per
#40
NicTool / Web-Interface reports charset ...
Last post by rainer_d - January 07, 2015, 04:39:32 PM
Hi,

I've upgraded to 2.30 and it seems the web-interface is still announcing it wants data in iso8859-1.
(In the "Content-Type" header, I get "text/html; charset=ISO-8859-1").

I tried setting default charset in apache and I grep'ed through the code - but I could not find a way to make it switch to utf8.

This results in broken umlauts in the comments.


Any ideas?
(This is apache 2.2 on FreeBSD with mod_perl2)



Best Regards,
Rainer