Hi,

I've found a problem with /usr/bin/sipx-dns validate_ns_records in main
stream rev15284, this results in the DNS Advisor failing on the NS
records even though they're present.

My suggested patch is below. Shall I raise a JIRA issue, or is this
already being tracked?

Dave.



--- a/sipXcommserverLib/bin/sipx-dns.in
+++ b/sipXcommserverLib/bin/sipx-dns.in
@@ -465,13 +465,15 @@ validate_ns_records () {
     local target
     local returned
     local resolves=NO
-    local liveservers=`dns_ns ${name}`
+    local liveservers
 
     verbose && echo -e "\nChecking 'NS' (domain->nameserver) Records:"
     generate_ns_records \
     | strip_space_and_comments \
-    | while read fullname intag rectype target extrajunk ; do
+    | while read fullname intag rectype fulltarget extrajunk ; do
         name=`normName ${fullname}`
+        target=`normName ${fulltarget}`
+        liveservers=`dns_ns ${name}`
 
         for returned in ${liveservers}
         do

_______________________________________________
sipx-dev mailing list
sipx-dev@list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to