From b09d4b62d0088712f3981ec461d92f15c29af54a Mon Sep 17 00:00:00 2001 From: sjing Date: Tue, 15 Jan 2013 02:35:49 +0000 Subject: [PATCH] Sync fix for bug 3202 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@14878 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ddns.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index 27352243a..90c166f24 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -1009,7 +1009,8 @@ sub add_or_delete_records { } my $zone; foreach $zone (keys %{$ctx->{updatesbyzone}}) { - my $resolver = Net::DNS::Resolver->new(nameservers=>[$ctx->{nsmap}->{$zone}]); + my $ip = xCAT::NetworkUtils->getipaddr($ctx->{nsmap}->{$zone}); + my $resolver = Net::DNS::Resolver->new(nameservers=>[$ip]); my $entry; my $numreqs = 300; # limit to 300 updates in a payload, something broke at 644 on a certain sample, choosing 300 for now my $update = Net::DNS::Update->new($zone);