-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The Thursday 2007-02-22 at 12:47 -0900, John Andersen wrote:
> > No, they wont. Ever. The hosts file is private to the machine having it.
> >
> > Define it in bind files instead.
>
> Yes, but WHERE is this defined in bind, Carlos.
>
> Not being a bind wizard, I was asking specifically how I might
> add a name such as "securitycam" to bind so that windows
> users can just key that into their web browser without having
> to know the IP of said camera.
Not an easy answer. I can manage my bind configuration, but I'm not so
expert as to offer advice... I could very easily give the wrong advice by
mistake.
Anyway...
You should have in /etc/named/zone/ two files for your zone, one direct
and one inverse, like:
1.168.192
mydomain
The first:
; Primary file for the 100.168.192.in-addr.arpa domain generated on Tue Jan 22
21:58:58 CET 2002
$TTL 86400
1.168.192.in-addr.arpa. SOA myhost.mydomain. root.myhost.mydomain. (
2006021019 28800 7200 604800 86400 )
NS myhost
1 PTR router.mydomain.
11 PTR myhost.mydomain.
The second:
; Primary file for the mydomain domain generated on Tue Jan 22 21:58:58 CET 2002
$TTL 86400
mydomain. SOA myhost.mydomain. root.myhost.mydomain. (
2006021019 28800 7200 604800 86400 )
NS myhost
MX 10 myhost
; Definición de los hosts
router A 192.168.1.1
myhost A 192.168.1.11
MX 10 myhost
And then, those files have to be referred to in /etc/named.conf:
zone "mydomain" in {
type master;
file "zone/valinor";
};
zone "1.168.192.in-addr.arpa" in {
type master;
file "zone/1.168.192";
};
There is a howto in the distro. And of course, if there is a Yast module, use
it.
- --
Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFF3s7ptTMYHG2NR9URAiXBAJ9SeJ1eZxd0oxN3tLbZ1SPUHIE7ZQCfXzvV
tTCNmYEygmoUnyPnMlx0/Cs=
=zi4H
-----END PGP SIGNATURE-----