How to Add IPv6 Addresses to DNS
Become superuser on system that has DNS.
Edit the appropriate DNS zone file by adding AAAA records for the IPv6-enabled host, using the following format.
host-name IN AAAA host-address
Edit the DNS reverse zone file and add PTR records, using the following format.
host-address IN PTR host-name
See RFC 1886 for more information about AAAA and PTR records.
Example--DNS Zone File
vallejo IN AAAA 2::9256:a00:20ff:fe12 IN AAAA fec0::9256:a00:20ff:fe12:528 |
Example--DNS Reverse Zone File
$ORIGIN ip6.int. 8.2.5.0.2.1.e.f.f.f.9.2.0.0.a.0.6.5.2.9.0.0.0.0.0.0.0.0.2.0.0.0 \ IN PTR vallejo.Eng.apex.COM. 8.2.5.0.2.1.e.f.f.f.9.2.0.0.a.0.6.5.2.9.0.0.0.0.0.0.0.0.0.c.e.f \ IN PTR vallejo.Eng.apex.COM. |
Monitoring IPv6
The following commands are modified to accommodate the Solaris implementation of IPv6.
ifconfig(1M)
netstat(1M)
snoop(1M)
ping(1M)
traceroute(1M)
You can use the new additions to conduct diagnostics. For conceptual descriptions of these commands, see "IPv6 Extensions to the ifconfig Utility" and "IPv6 Extensions to Existing Utilities".
Monitoring IPv6 Task Map
Table 15-2 Monitoring IPv6 Task Map
Task | Description | For Instructions, Go to ... |
---|---|---|
Display interface address assignments | Displays all, or just IPv4, or just IPv6 address assignments by using ifconfig command. | |
Display network status | Displays all sockets and routing table entries. Displays inet address family for IPv4. Displays inet6 address family for IPv6. Displays statistics for IPv6 or ICMPv6 counters of interfaces by using the netstat command. | |
Control the display output of IPv6 related commands | Controls the output of the ping, netstat, ifconfig, and traceroute commands. Creates a file that is named inet_type. Sets the DEFAULT_IP variable in this file. | "How to Control the Display Output of IPv6 Related Commands" |
Monitor only IPv6 network traffic | Displays all IPv6 packets by using the snoop command. | |
Probe all multihomed host addresses | Checks all addresses by using the ping command. | |
Trace all routes | Uses the traceroute command. |
How to Display Interface Address Assignments
You can use the ifconfig command to display all address assignments as well as just IPv4 or IPv6 address assignments.
For more information on the ifconfig command, see the ifconfig(1M) man page.
Example--Displaying Addressing Information for All Interfaces
% ifconfig -a lo0: flags=1000849 mtu 8232 index 1 inet 120.10.0.1 netmask ff000000 le0: flags=1000843 mtu 1500 index 2 inet 120.46.86.54 netmask ffffff00 broadcast 120.146.86.255 ether 8:0:73:56:a8 lo0: flags=2000849 mtu 8252 index 1 inet6 ::1/128 le0: flags=2000841 mtu 1500 index 2 ether 8:0:20:56:a8 inet6 fe80::a00:fe73:56a8/10 le0:1: flags=2080841 mtu 1500 index 2 inet6 fec0::56:20ff:fe73:56a8/64 le0:2: flags=2080841 mtu 1500 index 2 inet6 2::56:a00:fe73:56a8/64 |
Example--Displaying Addressing Information for All IPv4 Interfaces
% ifconfig -a4 lo0: flags=1000849 mtu 8232 index 1 inet 120.10.0.1 netmask ff000000 le0: flags=1000843 mtu 1500 index 2 inet 120.46.86.54 netmask ffffff00 broadcast 120.46.86.255 ether 8:0:20:56:a8 |
Example--Displaying Addressing Information for All IPv6 Interfaces
% ifconfig -a6 lo0: flags=2000849 mtu 8252 index 1 inet6 ::1/128 le0: flags=2000841 mtu 1500 index 2 ether 8:0:20:56:a8 inet6 fe80::a00:fe73:56a8/10 le0:1: flags=2080841 mtu 1500 index 2 inet6 fec0::56:20ff:fe73:56a8/64 le0:2: flags=2080841 mtu 1500 index 2 inet6 2::56:a00:fe73:56a8/64 |
How to Display Network Status
These procedures enable you to display the following structure formats for network data by using the netstat command:
All sockets and routing table entries
Inet address family for IPv4
Inet6 address family for IPv6
Statistics per interface--IPv6/ICMPv6 counters
For more information on the netstat command, see the netstat(1M) man page.