In the above configuration the domain name at both places is officex.com. There is already a DNS server at main office. Now I want to have a DNS server at branch office which can resolve names in both intranets.

In the above configuration the domain name at both places is officex.com. There is already a DNS server at main office. Now I want to have a DNS server at branch office which can resolve names in both intranets.

This is exactly what I am trying to do. I want to set up a DNS server in branch office. As mentioned the sub-net in branch office different but domain is same. So how do I set up the DNS server at branch office which can resolve

Just set up a normal DNS server (BIND, MyDNS, ...) and create the records for your main and branch office. If it is a resolving nameserver like BIND, it will resolve all domains that it can't find in its database, e.g. internet domains; if you use a non-resolving nameserver like MyDNS, you should also install dnscache to do the resolving (this is described here: http://www.howtoforge.com/mydns_name_server).

Afterwards, you should enter the IP address of the DNS server as the only nameserver in your client PCs DNS settings.

Look into creating Master and Slave DNS machines. You can make each a master and slave for particular names/ip ranges. They can then propogate to the "other" machine (master/slave) and in theory you should be able to see both sets of ranges from both locations, I think

HQ Master ===PROPOGATE===> BRANCH SLAVE
10.0.0.0/8

BRANCH SLAVE === PROPOGATE ===> HQ MASTER
192.168.1.0/24

I'm only working in theory here so i might be completely wrong.
________Headshop