Class: Y2Network::Sysconfig::DNSReader

Inherits:
Object
  • Object
show all
Includes:
Yast::Logger
Defined in:
src/lib/y2network/sysconfig/dns_reader.rb

Overview

Reads DNS configuration from sysconfig files

Instance Method Summary collapse

Instance Method Details

#configY2Network::DnsConfig

Return configuration from sysconfig files


33
34
35
36
37
38
39
40
41
# File 'src/lib/y2network/sysconfig/dns_reader.rb', line 33

def config
  Y2Network::DNS.new(
    nameservers:        nameservers,
    hostname:           hostname,
    searchlist:         searchlist,
    resolv_conf_policy: resolv_conf_policy,
    dhcp_hostname:      dhcp_hostname
  )
end