From 5aa8c5d9794b909ef9195992ee12f963e254574b Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Sat, 28 Aug 2010 17:19:45 -0400 Subject: [PATCH] macos afsdb reinit resolver on address change assume a new address means we probably have new resolver info; reinit when we get the callback. FIXES 126440 Change-Id: I0d5ac0576f2b2e90093b93974b0354cac35d84a3 Reviewed-on: http://gerrit.openafs.org/2622 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afsd/afsd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index f1433cc79e..712318fbf6 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -406,6 +406,10 @@ afsd_update_addresses(CFRunLoopTimerRef timer, void *info) } else printf("ADVISEADDR: Error in specifying interface addresses:%s\n", reason); + + /* Since it's likely this means our DNS server changed, reinit now */ + if (enable_afsdb) + res_init(); } /* This function is called when the system's ip addresses may have changed. */