Fortigate internal DNS server not resolving internal host names
I have a FortiGate 70F running 7.4.7 and I'm trying to set up a DNS server on it to resolve some internal server host names. The system DNS is pointing to the FortGuard DNS servers. I am using FortiSwitches connected via FortiLink for clients on multiple VLANs.
I enabled DNS Servers in Feature Visibility to add that option and noticed that it already had an entry for the fortilink interface set to Forward to System DNS, and a DNS Database entry for fortiswitch set to Primary/Shadow that has 5 entries, one for each of my FortiSwitches. I did not make any of these, so this is apparently done automatically when you install a FortiSwitch.
I am trying to get clients on the Lab VLAN to resolve host names for 3 servers in our environment. I went through the steps to add a new DNS Database using Primary/Shadow and added 'A' and 'PTR' records and a domain name for the 3 servers on our internal network. I saved this and then added a 'DNS Service on Interface' as recursive for the Lab VLAN interface (which is configured on the Fortilink switches) that the clients are on, and added the new internal domain name as a local domain name in the system DNS settings. I then went to the interface for the Lab VLAN and changed the DNS server from 'Same as System DNS' to 'Same as Interface IP'.
When testing from one of the client pcs on the Lab VLAN, it can ping those servers by IP address but if I try to ping it by the host name I get "Ping request could not find host newhost.myinternalnet.com. Please check the name and try again". Nslookup returns the following -
Server: dns1.fortiguard.net
Address: 96.45.45.45
*** dns1.fortiguard.net can't find newhost.myinternalnet.com: Non-existent domain
It appears to still just be using the FortiGuard DNS and not using my new DNS entries at all, so I am wondering if having that default entry for the fortilink switches is somehow overriding the Lab VLAN sub-interface under the fortilink interface? I also tried changing that default entry for the DNS Service fortilink interface to recursive instead of system DNS servers and had the same result.
Thanks in advance for any help on what I've missed or done wrong!