The "@" Notation?

phn at phn at
Thu Dec 5 22:02:36 UTC 2002

Si <swalker at> wrote:

> Hi All,

> Another person who is new to DNS.

> I am looking at BIND 8/9

> I have just read the 4th Chapter in the 4th Ed of DNS and BIND from
> O'reilly.

> It mentions shortcuts and one of them in the "@" notation.

> As I have read the @ is replaced in the zone file by the origin, which c=
> from the zone statement in named.conf? The main question is do I need to
> have a trailing period (.) in the zone statement so that @ is complete w=
> it is replaced in the zone file.

See '@' as a simple macro substitution for the current value of $ORIGIN

> So should named.conf be like so?

> zone ""{
> type master;
> file "";
> };

No, traling blanks in the named.conf file is ignored. ( but does not harm =

> With the trailing period (.) or can I leave it off as BIND would know th=
> is complete.

> I think this quite important as if I get it wrong all my hosts listed in=
> zone file without the domain attached (like so) would then fail?

> localhost   IN A

> host-a      IN A

> host-b      IN A

> host-c      IN A

In the above example the value of $ORIGIN is appended to all names, thus=20
if $ORIGIN is "" the the above reads :	IN A		IN A


> I hope I have explained this ok..

> Regards,

> Si

Peter H=E5kanson=20=20=20=20=20=20=20=20=20
        IPSec  Sverige      ( At Gothenburg Riverside )
           Sorry about my e-mail address, but i'm trying to keep spam out,
	   remove "icke-reklam" if you feel for mailing me. Thanx.

More information about the bind-users mailing list