Server IP : 221.132.30.236 / Your IP : 216.73.216.91 [ Web Server : Apache System : Linux web3.trangwebvang.net 2.6.32-954.3.5.lve1.4.86.el6.x86_64 #1 SMP Tue Aug 31 17:08:39 UTC 2021 x86_64 User : cherishhotel ( 944) PHP Version : 5.6.40 Disable Function : exec, system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice, proc_terminate, proc_get_status, proc_close, pfsockopen, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid,dl,symlink Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /scripts/ |
Upload File : |
#!/usr/local/cpanel/3rdparty/bin/perl # cpanel - scripts/rebuildnsdzones Copyright 2022 cPanel, L.L.C. # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited use strict; use Cpanel::NameServer::Utils::NSD (); use Cpanel::NameServer::Conf (); use Cpanel::Usage (); Cpanel::Usage::wrap_options( \@ARGV, \&usage, {} ); if ( $> != 0 ) { die "Insufficient permissions to rebuild NSD zone database"; } my $conf_obj = Cpanel::NameServer::Conf->new(); if ( $conf_obj->type() ne 'nsd' ) { $conf_obj->finish(); exit 0; } my ( $exit_code, $output ) = Cpanel::NameServer::Utils::NSD::rebuild_zonedb($conf_obj); $conf_obj->finish(); print $output if ($exit_code); exit $exit_code; sub usage { print <<EO_USAGE; Usage: rebuildnsdzones [--help] Rebuild the entire NSD zone database. The invoking user must be root and NSD must be the current name server. With --help, print this help message instead. EO_USAGE exit 0; }