Network configuration |
modules/DNS.ycp |
Hostname and DNS data | |
|
Manages resolv.conf and (fully qualified) host name, also
respecting DHCP.
Imports
Includes
Global VariablesGlobal FunctionsLocal Variables |
global
hostname
->
string
Short Host Name
global
domain
->
string
Domain Name (not including the host part)
global
resolv_conf_process
->
string
Name of program that has claimed resolv.conf
global
modified
->
boolean
Data was modified?
local
resolv_conf
->
string
resolver config file location
local
initialized
->
boolean
True if DNS is already read
global
Read ()
->
boolean
Reads current DNS and hostname settings Includes Host,NetworkConfig::Read
- Return value:
-
true if success
global
Write ()
->
boolean
Write new DNS and hostname settings Includes Host,NetworkConfig::Write
- Return value:
-
true if success
global
Import (map settings)
->
boolean
Get all the DNS configuration from a map. When called by dns_auto (preparing autoinstallation data) the map may be empty.
- Parameters:
-
settings autoinstallation settings
- Return value:
-
true if success
global
Export ()
->
map
Dump the DNS settings to a map, for autoinstallation use.
- Return value:
-
autoinstallation settings
global
Summary ()
->
string
Create DNS text summary
- Return value:
-
summary text
global
IsHostLocal (string check_host)
->
boolean
Check if host name 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
- Parameters:
-
check_host string host name or IP address to check
- Return value:
-
true if host name is local host