37. .etc.hosts

Agent for reading/writing /etc/hosts

37.1. Description

Access type: read/write

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

See: hosts(5)

37.2. Usage

Example 18. 

Dir(.etc.hosts)
(["127.0.0.1", "::1"])
Read(.etc.hosts."127.0.0.1")
("localhost")
Write(.etc.hosts."10.20.1.29", "beholder.suse.cz beholder")
(true)