Round robin on CNAME

Michael Kjorling michael at kjorling.com
Wed Mar 27 15:33:10 UTC 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Someone,

CNAME, or "canonical name" records, point one node in the DNS tree at
exactly one other node. If you want to have the name "www" resolve to
two different addresses, you can use A or AAAA/A6 records instead:

> www A 10.0.0.1
> www A 192.168.0.1

Of course you can still define other records which carry the same
address data:

> www1 A 10.0.0.1
> www2 A 192.168.0.1


Michael Kjörling


On Mar 27 2002 09:45 +0100, Someone wrote:

> Hello,
>
> I would like to know if it's possible to do round robin based on
> multiple CNAME entries, like that for example: ?
>
> www1
> 	IN	A	X.X.X.X
> www2
> 	IN	A	X.X.X.X
> www
> 	IN	CNAME	www1
> www
> 	IN	CNAME	www2
>
> Because my BIND v9 is complaining:
>
> Mar 27 09:41:02 hostname named[22042]: dns_master_load:
> master/filename:12: multiple RRs of singleton type
>
> Or else how can I achieve this ? Because I would like to do round-robin
> between 2 web servers but still  have valid names to access and
> differentiate them like www1 and www2.
>
> Thanks for your comments
>
> Regards

- -- 
Michael Kjörling  --  Programmer/Network administrator  ^..^
Internet: michael at kjorling.com -- FidoNet: 2:204/254.4   \/
PGP: 95f1 074d 336d f8f0 f297 6a5b 2aa3 7bfd 8a70 e33e

``And indeed people sometimes speak of man's "bestial" cruelty, but
this is very unfair and insulting to the beasts: a beast can never be
so cruel as a man, so ingeniously, so artistically cruel.''
(Ivan Karamazov, in Dostoyevsky's 'The Brothers Karamazov')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Public key is at http://michael.kjorling.com/contact/pgp.html

iD8DBQE8oeY5KqN7/Ypw4z4RAv7VAJ4zBm00ITQDJAlX5KPdXcHOhPIiEwCgmawT
+fvisdo7Z4GZrBbe4xXHJZg=
=a8UK
-----END PGP SIGNATURE-----




More information about the bind-users mailing list