gdnsd
]
-service "gdnsd" do
- action [:enable, :start]
- supports :status => true, :restart => true, :reload => true
-end
-
template "/etc/gdnsd/config" do
source "config.erb"
owner "root"
notifies :restart, "service[gdnsd]"
end
+if node[:lsb][:release].to_f >= 18.04
+ service "systemd-resolved" do
+ action [:disable, :stop]
+ end
+end
+
+service "gdnsd" do
+ action [:enable, :start]
+ supports :status => true, :restart => true, :reload => true
+end
+
firewall_rule "accept-dns-udp" do
action :accept
source "net"