Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 servername

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.

share|improve this question
1  
Is subnet B 192.168.0.1/26 a typo?, it doesn't fit in with subnet A 192.168.0.0/26 –  Bryan Dec 3 '12 at 21:19
    
Oh. Yea it is, sorry. It is subnet b 192.168.1.0/26 –  hofmeister Dec 3 '12 at 21:44
    
I can't figure out what exactly you are asking. I've read this a few times and I still have no idea what your actual problem is. –  David Schwartz Dec 4 '12 at 3:50
    
I edit my question a little bit. Now better? The main problem is, that the dns entry from the hosts from subnet b are not their own names, it is the name from the server with added "-2". Please see the table. If I do nslookup hosta i get no result. Greetz. –  hofmeister Dec 4 '12 at 5:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.