Ndsrepair writes bogus referrals into database if IPv6 address is not enclosed in brackets within hosts.nds file

  • 7014773
  • 20-Mar-2014
  • 20-Mar-2014

Environment

NetIQ eDirectory 8.8 SP8

Situation

-625 and -626 errors in synchronization.
 
An IPv6 address is bound to the NIC.
 
When running a ndsrepair - repair network address operation or an unattended repair a bogus address such as 0.0.7.209:610 is seen in the repair log and gets written to that server's referral list.
 
Checking server: .SLES11SP2-SVR1.emg
Address Type = TCP, data[6] = 151.155.213.139:524
Address Type = UDP, data[6] = 151.155.213.139:524
ERROR: Adding a Network Address Property :
Address Type = TCP, data[6] = 151.155.213.139:524
Address Type = UDP, data[6] = 151.155.213.139:524
Address Type = TCP, data[6] = 0.0.7.209:610
Address Type = UDP, data[6] = 0.0.7.209:610
Checking server address in Replica ID : 1, .Dallas.emg
Checking server address in Replica ID : 1, .emg
Checking server address in Replica ID : 1, .[Root].
 
The hosts.nds file:
 
#This is an example of a hosts.nds file:
# Tree name Internet address/DNS Resolvable Name
HV_888TREE_8. 151.155.213.137
HV_888TREE_8. 2001:610:148:dead:202:b3ff:fe9a:d264
emg.HV_888TREE_8. 151.155.213.137:524
emg.HV_888TREE_8. 2001:610:148:dead:202:b3ff:fe9a:d264
dallas.emg.HV_888TREE_8. 151.155.213.137:524
dallas.emg.HV_888TREE_8. 2001:610:148:dead:202:b3ff:fe9a:d264
# Server name Internet address
SLES11SP3-SVR1 151.155.213.137
SLES11SP3-SVR1 2001:610:148:dead:202:b3ff:fe9a:d264
SLES11SP2-SVR1 151.155.213.139
SLES11SP2-SVR1 2001:610:148:dead:202:b3ff:fe9a:d265
HV2012-SVR3    151.155.213.143
HV2012-SVR3  2001:610:148:dead:202:b3ff:fe9a:d266
 
In order for repair to correctly parse the IPv6 address the address portion must be in brackets when adding that value to the hosts.nds file.  Example:
 
#This is an example of a hosts.nds file:
# Tree name Internet address/DNS Resolvable Name
HV_888TREE_8. 151.155.213.137
HV_888TREE_8. [2001:610:148:dead:202:b3ff:fe9a:d264]
emg.HV_888TREE_8. 151.155.213.137:524
emg.HV_888TREE_8. [2001:610:148:dead:202:b3ff:fe9a:d264]
dallas.emg.HV_888TREE_8. 151.155.213.137:524
dallas.emg.HV_888TREE_8. [2001:610:148:dead:202:b3ff:fe9a:d264]
# Server name Internet address
SLES11SP3-SVR1 151.155.213.137
SLES11SP3-SVR1 [2001:610:148:dead:202:b3ff:fe9a:d264]
SLES11SP2-SVR1 151.155.213.139
SLES11SP2-SVR1 [2001:610:148:dead:202:b3ff:fe9a:d265]
HV2012-SVR3    151.155.213.143
HV2012-SVR3  [2001:610:148:dead:202:b3ff:fe9a:d266]
 

Resolution

This server had a hosts.nds file that contained an IPv6 address that was not contained within brackets.  Example:
 
#This is an example of a hosts.nds file:
# Tree name Internet address/DNS Resolvable Name
HV_888TREE_8. 151.155.213.137
HV_888TREE_8. 2620:113:8044:8100::a
emg.HV_888TREE_8. 151.155.213.137:524
emg.HV_888TREE_8. 2620:113:8044:8100::a
dallas.emg.HV_888TREE_8. 151.155.213.137:524
dallas.emg.HV_888TREE_8. 2620:113:8044:8100::a
# Server name Internet address
SLES11SP3-SVR1 151.155.213.137
SLES11SP3-SVR1 2620:113:8044:8100::a
SLES11SP2-SVR1 2620:113:8044:8100::8
SLES11SP2-SVR1 151.155.213.139
HV2012-SVR3    151.155.213.143
HV2012-SVR3    2620:113:8044:8100::b1st Iteration of the hosts.nds file on server SLES11SP3-SVR1: