124. .resolver

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

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

Access type: read/write

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

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

124.2. Usage

Example 75. 

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)