Hostname and DNS data
List of Global Functions
Export - Dump the DNS settings to a map, for autoinstallation use.
Import - Get all the DNS configuration from a map. When called by dns_auto (preparing autoinstallation data) the map may be empty.
IsHostLocal - Check if hostname or IP address is local computer Used to determine if LDAP server is local (and it should be checked if required schemes are included Calls Read () function before querying any data
Read - Reads current DNS and hostname settings Includes Host,NetworkConfig::Read
ReadHostDomain - Use this host and domain name, if they are defined
ReadNameserver - Use the parameter, coming usually from install.inf, if it is defined. Used when there is nothing better.
Summary - Create DNS text summary
Write - Write new DNS and hostname settings Includes Host,NetworkConfig::Write
List of Global Variables
domain - Domain Name (not including the host part)
hostname - Short Hostname
modified - Data was modified?
proposal_valid - Should the hostname be proposed? #152218
resolv_conf_process - Name of program that has claimed resolv.conf
Dump the DNS settings to a map, for autoinstallation use.
Return value
map - autoinstallation settings
Get all the DNS configuration from a map. When called by dns_auto (preparing autoinstallation data) the map may be empty.
Function parameters
map settings
Return value
boolean - true if success
Check if hostname or IP address is local computer Used to determine if LDAP server is local (and it should be checked if required schemes are included Calls Read () function before querying any data
Function parameters
string check_host
Return value
boolean - true if hostname is local host
Reads current DNS and hostname settings Includes Host,NetworkConfig::Read
Return value
boolean - true if success
Use this host and domain name, if they are defined
Function parameters
string hn
string dn
Return value
boolean - true if the hostname has been assigned
Use the parameter, coming usually from install.inf, if it is defined. Used when there is nothing better.
Function parameters
string ns
Return value
boolean - true if success