B
B
borodka_lenina2015-11-18 09:25:15
Domain Name System
borodka_lenina, 2015-11-18 09:25:15

How to force bind to replace dns-records for the necessary domains?

Hello. Actually, I would like the bind server to be used as a dns-server for some of the hosts in the local area, but at the same time only records "complementing" already existing zones were stored on it. How to do it?
I raised the server using this mana , but only those zones that are registered in the named config are resolved.
UPD: that is, there is an example.com domain, I want to add another subdomain to it, for example private.example.com and do it so that this entry is not visible on the Internet, but it is inside the local area.
But now everything looks like this:
First, I look for the domain registered in the example.com.zone zone on my local server, then I look for the name of which is not on the server, but which is in the main zone on the external ns-server and which resolves from any other host :

nslookup www.example.com 
Server:		192.22.22.22
Address:	192.22.22.22#53

Name:	www.example.com 
Address: 100.10.10.10


nslookup private.example.com 
Server:		192.22.22.22
Address:	192.22.22.22#53

** server can't find private.example.com : NXDOMAIN

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vlad Zhivotnev, 2015-11-18
@borodka_lenina

Set up a private.example.net zone, and enter bind as a resolver on hosts in the local area (well, of course, set up a forward for those zones that you don’t have).

D
Dmitry, 2015-11-18
@Tabletko

Try split DNS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question