No DNS servers are provided by dnsmasq

NS8 version?

I can’t make it works, i can create the domain and provide dhcp (i install dnsmaq module) to a windows client, but dns server it’s empty in the client, and neither can access internet.

NS7 was easy in this topic.

Hi,

I moved your question to a new topic.
NS7 was an all-in-one solution but NS8 is an application server so the recommended way is to use your router/firewall for DNS/DHCP. For example NethSecurity provides DHCP/DNS.

Regarding samba see also User domains — NS8 documentation

To set custom DNS servers in dnsmasq, you would need to use the advanced configuration, see DNSMasq — NS8 documentation

Create the file /var/lib/nethserver/dnsmasq1/state/dnsmasq.d/99custom.conf (assuming your dnsmasq instance is dnsmasq1) with following content to for example set DNS servers to 1.1.1.1 and 8.8.8.8:

dhcp-option=6,1.1.1.1,8.8.8.8

Restart dnsmasq:

systemctl restart dnsmasq1
1 Like