One dns server in different subnets
Posted
by
hofmeister
on Server Fault
See other posts from Server Fault
or by hofmeister
Published on 2012-12-03T20:05:58Z
Indexed on
2012/12/03
23:07 UTC
Read the original article
Hit count: 258
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 dnsServer from my nat router, I set the dns Server for subnet b to the ip 192.168.0.1, but every dns entries are equal with the hostname from my linux server.
Example if the hostname from the server is test
Test 192.168.0.62 //Server subnet a
Test-2 192.168.1.62 //Server subnet b
Test-2-2 192.168.1.1 //host a
Test-2-2-2 192.168.1.2 //host b
Any idea what went wrong? The internet dns resolution works fine.
© Server Fault or respective owner