How can I fake a part of domain?
Warren Kumari
warren at kumari.net
Wed Jun 23 22:38:35 UTC 2010
On Jun 23, 2010, at 11: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.
Erm, are you *sure* that you want to do this?
Really really sure?
It's probably a bad idea, but....
Step 1: Make yourself authoritative for www2, www3 -- in named.conf:
zone "www2.example.com" {
type master;
file "/etc/namedb/www2.example.com";
};
zone "www3.example.com" {
type master;
file "/etc/namedb/www3.example.com";
};
Step 2: Make zone files www2.example.com (and obviously, www3):
$TTL 1h
www2.example.com. IN SOA localhost (
hostmaster.localhost
2010062700
1h
15m
4w
1h )
NS localhost.
A 11.11.11.11
Step 3: Repeat "This was a bad idea and I feel dirty..."
W
>
> Thank you.
>
> Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
> Sign up now. _______________________________________________
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
More information about the bind-users
mailing list