Class: Y2Network::Sysconfig::DNSWriter

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

Overview

This class writes DNS configuration settings.

Instance Method Summary collapse

Instance Method Details

#write(dns, old_dns) ⇒ Object

Writes DNS configuration


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

def write(dns, old_dns)
  return if old_dns && dns == old_dns
  update_sysconfig_dhcp(dns, old_dns)
  update_hostname(dns)
  update_mta_config
  update_sysconfig_config(dns)
end