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 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 -> 1.2.3.4 (public IP)

What I would like for it to return:

secure.example.com -> 192.168.20.10 (internal IP)

How would I go about configuring this?

Thanks,

share|improve this question

2 Answers 2

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

http://www.zytrax.com/books/dns/ch7/view.html

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.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

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

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