Ok .... sorry there is some confusion on how I have my network setup.
1) Under network:
eth1 - external interface - DHCP - connected to the ISP
From it I get my external IP + external gateway + DNS enteries
eth0 - 802.1Q VLan
Vlan11 - home.lan - static - 192.168.11.1
Vlan12 - wifi.lan - static - 192.168.1.1
Vlan13 - wifi.guest - static - 192.168.12.1
Vlan14 - DMZ - static - 192.168.14.1
2) Under network: DNS section
I have added 127.0.0.1 and made it the top of the list
3) Under the actual DNS module farther down the dashboard:
I created the following domains: home.lan; wifi.lan; wifi.guest; DMZ; Control
I saw that ns records are automatically created for each one pointing to 127.0.0.1
4) In the web-server module:
I created several Vhost - wpad.home.lan; apartment.com; and zarafa
5) In the DHCP module
I gave each Vlan a range 100-105 in their own subnet (example Vlan11-home.lan-192.168.11.100-192.168.11.105)
I set the static and dynamic domain for each particular VLan using my DNS enteries (Vlan11=home.lan, Vlan12=wifi.lan, etc......)
I set the Wins server and NTP server section to = local Zentyal
The search domain is set to = DMZ
Gateway is set to = Zentyal
DNS is set to = Zentyal
-----
Now each client gets the correct IP in the correct range----- for example.
my main client computer is attached to VLan11 which is home.lan
The IP is 192.168.11.100
DNS is 192.168.11.1
Wins is 192.168.11.1
Gateway is 192.168.11.1
DHCP is 192.168.11.1
So everything seems correct except when I type an internal vhost (example wpad.home.lan) into the web browser I don't get a connection. If I type the IP (example
192.168.11.1 = wpad.home.lan) itself I do get a connection.
When I do a nslookup...... the output gives me the server address of my ISP and not my internal 127.0.0.1.
When I look in the /etc/resolve.conf I do not see address 127.0.0.1 (should it be this way even though I added this address to -network---DNS section?
).
Last night I made a test and added 127.0.0.1 to the /etc/resolve.conf and now if I type the name of vhost it goes to the correct page !!!! Now if I do an nslookup the server output is 127.0.0.1.... also if I type in an IP address like nslookup 192.168.11.1 I get output ns.home.lan or if I type in nslookup ns.home.lan I get output of 192.168.11.1
Basically now it seems as if everything is working properly......but only after I modified the /etc/resolve.conf manually which should not be the answer.
Hopefully this will clarify my previous statements and you guys can continue educating me !!!!!