1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 * 19 */ 20 21 package org.apache.directory.server.dns.io.encoder; 22 23 24 /** 25 * 2. New resource record definition and domain 26 * 27 * A record type is defined to store a host's IPv6 address. A host that 28 * has more than one IPv6 address must have more than one such record. 29 * 30 * 2.1 AAAA record type 31 * 32 * The AAAA resource record type is a record specific to the Internet 33 * class that stores a single IPv6 address. 34 * 35 * The IANA assigned value of the type is 28 (decimal). 36 * 37 * 2.2 AAAA data format 38 * 39 * A 128 bit IPv6 address is encoded in the data portion of an AAAA 40 * resource record in network byte order (high-order byte first). 41 * 42 * 2.3 AAAA query 43 * 44 * An AAAA query for a specified domain name in the Internet class 45 * returns all associated AAAA resource records in the answer section of 46 * a response. 47 * 48 * A type AAAA query does not trigger additional section processing. 49 * 50 * 2.4 Textual format of AAAA records 51 * 52 * The textual representation of the data portion of the AAAA resource 53 * record used in a master database file is the textual representation 54 * of an IPv6 address as defined in [3]. 55 * 56 * 2.5 IP6.ARPA Domain 57 * 58 * A special domain is defined to look up a record given an IPv6 59 * address. The intent of this domain is to provide a way of mapping an 60 * IPv6 address to a host name, although it may be used for other 61 * purposes as well. The domain is rooted at IP6.ARPA. 62 * 63 * An IPv6 address is represented as a name in the IP6.ARPA domain by a 64 * sequence of nibbles separated by dots with the suffix ".IP6.ARPA". 65 * The sequence of nibbles is encoded in reverse order, i.e., the 66 * low-order nibble is encoded first, followed by the next low-order 67 * nibble and so on. Each nibble is represented by a hexadecimal digit. 68 * For example, the reverse lookup domain name corresponding to the 69 * address 70 * 71 * 4321:0:1:2:3:4:567:89ab 72 * 73 * would be 74 * 75 * b.a.9.8.7.6.5.0.4.0.0.0.3.0.0.0.2.0.0.0.1.0.0.0.0.0.0.0.1.2.3.4.IP6. 76 * ARPA. 77 * 78 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 79 */ 80 public class Inet6AddressRecordEncoder 81 { 82 }