Network configuration |
modules/DNS.ycp |
Hostname and DNS data | |
|
|
This module has an unstable interface. |
Manages resolv.conf and (fully qualified) hostname, also
respecting DHCP.
Imports
Includes
Global VariablesGlobal Functions
Local Variables |
Should the hostname be proposed? #152218
Short Hostname
Domain Name (not including the host part)
Name of program that has claimed resolv.conf
Data was modified?
Use the parameter, coming usually from install.inf, if it is defined. Used when there is nothing better.
- Parameters:
-
ns ip of the nameserver
- Return value:
-
true if success
Use this host and domain name, if they are defined
- Parameters:
-
hn hostname dn domain name
- Return value:
-
true if the hostname has been assigned
resolver config file location
True if DNS is already read
Reads current DNS and hostname settings Includes Host,NetworkConfig::Read
- Return value:
-
true if success
Write new DNS and hostname settings Includes Host,NetworkConfig::Write
- Return value:
-
true if success
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
Dump the DNS settings to a map, for autoinstallation use.
- Return value:
-
autoinstallation settings
Create DNS text summary
- Return value:
-
summary text
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
- Parameters:
-
check_host string hostname or IP address to check
- Return value:
-
true if hostname is local host