47. DNS

Hostname and DNS data

47.1. Summary of Module Globals

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 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

  • Read - Reads current DNS and hostname settings Includes Host,NetworkConfig::Read

  • Summary - Create DNS text summary

  • Write - Write new DNS and hostname settings Includes Host,NetworkConfig::Write

List of Global Variables

47.2. Global Functions

47.2.1. Export

Dump the DNS settings to a map, for autoinstallation use.

Return value

  • map - autoinstallation settings

47.2.2. Import

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

47.2.3. IsHostLocal

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

Function parameters

  • string check_host

Return value

  • boolean - true if host name is local host

47.2.4. Read

Reads current DNS and hostname settings Includes Host,NetworkConfig::Read

Return value

  • boolean - true if success

47.2.5. Summary

Create DNS text summary

Return value

  • string - summary text

47.2.6. Write

Write new DNS and hostname settings Includes Host,NetworkConfig::Write

Return value

  • boolean - true if success

47.3. Global Variables

47.3.1. domain

Domain Name (not including the host part)

47.3.2. hostname

Short Host Name

47.3.3. modified

Data was modified?

47.3.4. resolv_conf_process

Name of program that has claimed resolv.conf

47.4. Module Requirements

47.4.1. Module Imports

  • Detection
  • Host
  • Hostname
  • IP
  • NetworkConfig
  • NetworkDevices
  • Service
  • Summary

47.4.2. Module Includes

  • network/runtime.ycp