Does "@" in CNAME record not work?

Kevin Darcy kcd at daimlerchrysler.com
Thu Jul 12 15:41:44 UTC 2001


Correct, "@" cannot own a CNAME record.

Neither, legally, can the name of the zone, spelled out. I'm not sure why
named accepted this. Then again, you didn't say what version of BIND you
are running...

You should use "@ a 192.168.0.4" instead.


- Kevin

Jim Lum wrote:

> Hi,
>
> I'm setting a nameserver using Bind on my home network.
>
> I have a server running both my web server and Bind (i.e., the name
> server and the web server are on the same machine).
>
> In the Bind zone file, I have the name server named as 'ns1', i.e., I
> have an 'A' record:
>
> ns1     A       192.168.0.4
>
> And, for the web server, I have a CNAME record:
>
> www     CNAME   ns1
>
> But, I also wanted to be able to be able to have just the domain name
> (the origin, I guess it's called), so I added an additional CNAME
> record:
>
> @       CNAME   ns1
>
> When I do this, it doesn't work.  When I ping 'mydomain.com', instead of
> picking up the IP address for ns1.mydomain.com that I have set in my
> Bind files, it's getting some other IP address.
>
> If I replace the @ CNAME record with:
>
> mydomain.com.   CNAME   ns1
>
> it works correctly.
>
> Is the "@" notation not allowed in CNAME records?
>
> Thanks,
> Jim





More information about the bind-users mailing list