I have installed a small Linux server; the server is in a different subnet as the internet hosts. I added a route to my nat router to create a connection between both subnets. In both subnets I use an extra dhcp Server.
Subnet A: 192.168.0.0/26 Subnet B: 192.168.1.0/26 Router: 192.168.0.1, Server in A: 192.168.0.62, Server in B: 192.168.1.62 internet ____ nat router ___ (Sub A)___ internet hosts | |____(Sub B)___ other hosts
I could ping every host. Also the hosts which are connected to the subnet b, has internet connection.
But sadly I have a problem with the dns server. I use the dns server from my nat router, I set the dns Server for subnet b to the ip 192.168.0.1, but every dns entries are similar with the hostname from my linux server. I miss the correct hostname.
Example if the hostname from the server is
dns entry ip-address true hostname servername 192.168.0.62 servername servername-2 192.168.1.62 servername servername-2-2 192.168.1.1 hosta //PC a in subnet b servername-2-2-2 192.168.1.2 hostb //PC b in subnet b
Any idea what went wrong? The internet dns resolution works fine.