You can fake the whole example.com if you don't mind keeping the "real" entries (e.g. www.example.com) in synch if they happen to change. Maybe an automated script could look for the changes and apply them to your version of the zone.

If you're not up to that, it gets ugly. The only method that comes to mind is to define each of the names (e.g. www2.example.com, www3.example.com) you want to fake as zones by themselves, in your local DNS. Note that this won't even work if what you're trying to fake is a CNAME, since you can't have a CNAME at the apex of a zone.

- Kevin



On 6/23/2010 5:06 PM, Peter Macko wrote:
How can I "fake" a part of domain?

Explanation of what I mean:

- There is example.com domain somewhere on internet (not under my control) that contains:
www.example.com .... IP: 1.2.3.4
www2.example.com ... IP: 11.22.33.44

- I have local DNS; and for my local network I fake to have example.com domain.

- I would like to configure my local DNS (BIND) to:
1. return real IP (1.2.3.4) of www.example.com
2. return fake IP (11.11.11.11) of www2.example.com
3. return IP (99.99.99.99) of www3.example.com that do not really exists

No 1. have to forward the request to the real example.com DNS,
but No 2. and 3. should fake the result.

Thank you.

------------------------------------------------------------------------
Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up now. <https://signup.live.com/signup.aspx?id=60969>


_______________________________________________
bind-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/bind-users

_______________________________________________
bind-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to