dns for local
Daniel Norton
danorton at suespammers.org
Tue Jul 18 17:07:11 UTC 2000
On Tue, 18 Jul 2000 12:22:07 -0400, "unknown" <x-men at tucows.speedme.com> wrote:
>how do i make local ip resolve to something
>like for instance my local ip is
>
>192.168.0.1 and i want it to resolve to dev.domain.com
You need to set up a reverse-domain (aka in-addr.arpa) zone. Add
something like this to your named.conf file:
===
zone "0.168.192.in-addr.arpa"{
type master;
file "192.168.0";
notify no;
allow-transfer {
none;
} ;
}
===
And add something like this (named "192.168.0") file to your domain
files directory (modify as needed):
===
$TTL 43200
@ IN SOA 0.168.192.in-addr.arpa. x-men.tucows.speedme.com. (
1 ; serial
3600 ; refresh
900 ; retry
1209600 ; expire
43200 ; default_ttl
)
@ IN NS <the name of your domain server>.
1.0.168.192.in-addr.arpa. IN PTR dev.domain.com.
===
Before setting these up, make sure that the forward lookups map to the
correct IP address (i.e. dev.domain.com. must map to 192.168.0.1).
Note that you can only manage in-addr.arpa sub-domains in private IP
space or in a sub-space that has been allocated to you.
--
Daniel Norton
More information about the bind-users
mailing list