67. .etc.resolv_conf

67.1. Description

The target agent is the SCR interface to /etc/resolv.conf, the resolver (name server) configuration file. Using "search, "nameserver", "domain", "sortlist" and "options" as subpaths, the respective values can be read/written. Info paths can be read/written using "modified", "backup", "process", "process_id", "script" and "info" as subpaths of .etc.resolv_conf. For more information see the agent's own documentation.

File Name: /usr/share/YaST2/scrconf/etc_resolv_conf.scr

See: resolv.conf(5) source/core/agent-resolver/doc/resolveragent.txt http://w3.suse.de/~poeml/resolv.conf-modification-howto.txt

67.2. Usage

Example 31. 

  Read(.etc.resolv_conf.domain)
  ("suse.de")

  Read(.etc.resolv_conf.nameserver)
  (["10.10.0.1", "10.10.10.1", "10.10.11.1"])

  Write(.etc.resolv_conf.domain, "suse.de")
  (true)