%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,mail,shell_exec,system,proc_open,popen,ini_alter,dl,proc_close,curl_exec,curl_multi_exec,readfile,parse_ini_file,escapeshellarg,escapeshellcmd,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,mail,php_uname,phpinfo MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/net/ |
Upload File : |
#!/usr/bin/perl # list_dns.cgi # Display the DNS client configuration require './net-lib.pl'; $access{'dns'} || &error($text{'dns_ecannot'}); &ui_print_header(undef, $text{'dns_title'}, ""); $dns = &get_dns_config(); # Start of the form print &ui_form_start("save_dns.cgi"); print &ui_table_start($text{'dns_options'}, "width=100%", 4); # Find hostname in /etc/hosts, offer to fix @hosts = &list_hosts(); foreach $h (@hosts) { foreach $n (@{$h->{'hosts'}}) { $found++ if ($n eq &get_hostname()); } } # System's hostname print &ui_table_row($text{'dns_hostname'}, &ui_textbox("hostname", &get_hostname(), 40). ($found ? "<br>".&ui_checkbox("hosts", 1, $text{'dns_hoststoo'}, 1) : ""), 3); # DNS resolution order $order = &order_input($dns); if ($order) { print &ui_table_row($text{'dns_order'}, $order, 3); } # Check if hostname is set from DHCP # XXX not done yet #$dhost = defined(&get_dhcp_hostname) ? &get_dhcp_hostname() : -1; #if ($dhost != -1) { # print "<tr> <td></td>\n"; # print "<td>",&ui_checkbox("dhcp", 1, $text{'dns_dhcp'}, $dhost), # "</td> </tr>\n"; # } # DNS servers @nslist = ( ); for($i=0; $i<$max_dns_servers || $i<@{$dns->{'nameserver'}}+1; $i++) { push(@nslist, &ui_textbox("nameserver_$i", $dns->{'nameserver'}->[$i], 15)); } print &ui_table_row($text{'dns_servers'}. ($dns->{'name'} ? " ".$dns->{'name'}[0] : ""), join("<br>", @nslist)); print &ui_hidden("name0", $dns->{'name'}[0]) if ($dns->{'name'}); # Additional DNS servers, as seen on Windows if (@{$dns->{'name'}} > 1) { for ($j=1; $j<@{$dns->{'name'}}; $j++) { @nslist = ( ); for ($i=0; $i<$max_dns_servers; $i++) { push(@nslist, &ui_textbox("nameserver${j}_$i", $dns->{"nameserver$j"}->[$i], 15)); } print &ui_table_row($text{'dns_servers'}." ".$dns->{'name'}[$j], join("<br>", @nslist)); print &ui_hidden("name$j", $dns->{'name'}[$j]); } } # DNS search domains print &ui_table_row($text{'dns_search'}, &ui_radio("domain_def", $dns->{'domain'} ? 0 : 1, [ [ 1, $text{'dns_none'} ], [ 0, $text{'dns_listed'} ] ])."<br>". &ui_textarea("domain", join("\n", @{$dns->{'domain'}}), 3, 30)); # End of the form print &ui_table_end(); if ($access{'dns'} == 2) { print &ui_form_end([ [ undef, $text{'save'} ] ]); } else { print &ui_form_end(); } &ui_print_footer("", $text{'index_return'});