133. .resolver

SCR Agent for interfacing accessing /etc/resolv.conf, the resolver (name server) configuration file.

133.1. Authors

  • Unknown <yast2-hacker@suse.de>

133.2. 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 .resolver. For more information see the agent's own documentation.

Access type: read/write

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

See also:

libscr
man resolv.conf
man resolver
source/y2scr/ag_resolver/doc/resolveragent.txt

133.3. Usage

Example 78. 

Read(.resolver.domain)
("suse.de")
Read(.resolver.nameserver)
(["10.10.0.1", "10.10.10.1", "10.10.11.1"])
Write(.resolver.domain, "suse.de")
(true)