There can be a redundancy switchover possible for the DNS/ECSP server at run time, because of which the server IP gets changed. This switchover should get automatically handled for TRDP session, for which the TTI and DNR system have already been initialized.
Proposal:
This solution proposal assumes that DNS and ECSP server are located on same machine. The idea is that we can use the TTI PD Callback of the TTDB_STATUS_COMID (100) to see if its source IP address has changed in order to detect redundancy switchover. If that is the case, then the DNS server IP needs to be changed.
Attached a patch file for the same. (I confess that the patch is rather a rudimentary way to do it, which exploits some crude pointer conversions.)
I have implemented your suggestion, but with proper use of TAU_DNR_DATA_T by moving its definition to the header file (tau_dnr.h)