• Increase font size
  • Default font size
  • Decrease font size
Home Software SysFunc Sysfunc Reference Guide - Network

Sysfunc Reference Guide - Network

E-mail Print
Read : 3,156 times
(0 votes, average 0 out of 5)
Article Index
Sysfunc Reference Guide
Configuration parameters
System database
Disk management
Error handling
File manipulation
Filesystems
IP V4 addresses
Kernel
Logical volume manager
Miscellaneous
Message display
User interaction
Network
OS
File backup
Software packages
Services
Time and date
Temporary file management
Users and groups
Vmware-specific
Function index
All Pages

dns_addr_to_name

Resolves an IP address through the DNS

If the address cannot be resolved, displays nothing

Arguments

$1IP address
$2Optional. DNS server to ask

Returns

Always 0

Displays

Host name as returned by the DNS or nothing if address could not be resolved.

dns_name_to_addr

Resolves a host name through the DNS

If the name cannot be resolved, displays nothing

Arguments

$1Host name to resolve
$2Optional. DNS server to ask

Returns

Always 0

Displays

IP address as returned by the DNS or nothing if name could not be resolved.

domain_part

Suppresses the host name part from a FQDN

Displays the input string without the beginning up to and including the first '.'.

Arguments

$1Input FQDN

Returns

Always 0

Displays

truncated string

host_part

Extracts a hostname from an FQDN

Removes everything from the first dot up to the end of the string

Arguments

$1Input FQDN

Returns

Always 0

Displays

truncated string

primary_ip_address

Get the primary address of the system

This is an arbitrary choice, such as the address assigned to the first network nterface. Feel free to improve !

Arguments

None

Returns

Always 0

Displays

IP address or nothing if no address was found

 

Please login or register to add a comment