Hi all,
As I was playing around with dnrd last night, I was bothered by the
restrictions on the -s<ip>:domain> and -s<ip> combinations. in looking
through the code, it seems like what we need is to keep dns_srv[] info
*by domain* (including default). You'd also have to keep serv_count
and serv_act by domain, but they seem fairly localized. This would
allow for setups like:
dnrd -s 1.2.3.4:domain1 -s 1.2.3.5:domain1 -s 2.3.4.5 -s 2.3.4.6
which would basically put in 1 pair of servers for domain1, and 1 pair
for the default.
This seems like a not-too-terrible modification -- will there be
heartburn if I go ahead and do it? I am not thinking of changing
dns_srv[], just adding some additional info and accessor functions et
the correct current and next active server based on the domain.
Thanks,
Chris