I have setup a BIND named server and I am trying to figure out how to get it to return a local IP, rather than a public IP, for a handful of servers that we have.

Here's an example of what the name server currently returns:

secure.example.com -> (public IP)

What I would like for it to return:

secure.example.com -> (internal IP)

How would I go about configuring this?



You have to use views in bind. Look down in the split DNS section


It allows you to create a view based on IP subnets where you can say this view should resolve using this file and this other view should resolve with this file.


You need to use views, you create ACLs based on networks, that list who should receive replies of private or public IPs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.