YaST2 Developers Documentation: Network configuration



functions
files
intro

Network configuration

modules/DNS.ycp
Hostname and DNS data
Manages resolv.conf and (fully qualified) host name, also respecting DHCP.

Imports

  • Detection
  • Host
  • Hostname
  • NetworkConfig
  • NetworkDevices

Includes

  • network/routines.ycp
  • network/runtime.ycp

Global Variables

Global Functions

Local 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

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

YaST2 Developers Documentation