+ 474. [bug] The mnemonic of the CHAOS class is CH according to
+ RFC1035, but it was printed and read only as CHAOS.
+ We now accept both forms as input, and print it
+ as CH. [RT #305]
+
473. [bug] nsupdate overran the end of the list of name servers
when no servers could be reached, typically causing
it to print the error message "dns_request_create:
* SOFTWARE.
*/
-/* $Id: rdata.c,v 1.101.2.2 2000/09/05 22:14:12 explorer Exp $ */
+/* $Id: rdata.c,v 1.101.2.3 2000/09/19 02:02:23 bwelling Exp $ */
#include <config.h>
#include <ctype.h>
COMPARE("any", META, dns_rdataclass_any);
break;
case 'c':
+ /*
+ * RFC1035 says the mnemonic for the CHAOS class is CH,
+ * but historical BIND practice is to call it CHAOS.
+ * We will accept both forms, but only generate CH.
+ */
+ COMPARE("ch", 0, dns_rdataclass_chaos);
COMPARE("chaos", 0, dns_rdataclass_chaos);
break;
case 'h':
case dns_rdataclass_any:
return (str_totext("ANY", target));
case dns_rdataclass_chaos:
- return (str_totext("CHAOS", target));
+ return (str_totext("CH", target));
case dns_rdataclass_hs:
return (str_totext("HS", target));
case dns_rdataclass_in: