If Windows clients, check DNS server(s) assigned and DHCP service used with below one:
C:\>ipconfig /all
[..]
Ethernet adapter Local Area Connection:
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 10.0.0.11(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : woensdag 28 augustus 2019 15:31:51
Lease Expires . . . . . . . . . . : donderdag 29 augustus 2019 15:31:51
Default Gateway . . . . . . . . . : 10.0.0.1
DHCP Server . . . . . . . . . . . : 10.0.0.2
DNS Servers . . . . . . . . . . . : 10.0.0.2
NetBIOS over Tcpip. . . . . . . . : Enabled
[..]
And use the nslookup
tool to test (runs on Windows/Linux/MacOS clients):
C:\>nslookup pi.hole 10.0.0.2
Server: noads.dehakkelaar.nl
Address: 10.0.0.2
Name: pi.hole
Address: 10.0.0.2
C:\>nslookup pi.hole 8.8.8.8
Server: dns.google
Address: 8.8.8.8
*** dns.google can't find pi.hole: Non-existent domain
C:\>nslookup pi-hole.net
Server: noads.dehakkelaar.nl
Address: 10.0.0.2
Non-authoritative answer:
Name: pi-hole.net
Addresses: 2604:a880:400:d0::1071:1
206.189.252.21
C:\>nslookup pi-hole.net 8.8.8.8
Server: dns.google
Address: 8.8.8.8
Non-authoritative answer:
Name: pi-hole.net
Addresses: 2604:a880:400:d0::1071:1
206.189.252.21