~ubuntu-branches/ubuntu/maverick/pdns/maverick-updates

« back to all changes in this revision

Viewing changes to pdns/dynhandler.cc

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Mohlmann, Matthijs Mohlmann, Christoph Haas
  • Date: 2007-04-15 23:23:39 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070415232339-5x3scc8gx04e50um
Tags: 2.9.21-1
[ Matthijs Mohlmann ]
* New upstream release. (Closes: #420294)
* Remove meta pdns package.
* Added new sqlite3 backend package.
* Months and minutes where mixed up. (Closes: #406462)
* Case sensitivity in bind backend caused PowerDNS to not serve a certain
  zone. (Closes: #406461)
* Bind backend forgot about zones on a notify. (Closes: #398213)

[ Christoph Haas ]
* Documented incorporated backend bind. (Closes: #415471)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
    You should have received a copy of the GNU General Public License
15
15
    along with this program; if not, write to the Free Software
16
 
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
16
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
17
*/
18
18
#include "utility.hh"
19
19
#include "dynhandler.hh"
190
190
  if(!P.getBackend()->getDomainInfo(domain, di))
191
191
    return "Domain '"+domain+"' unknown";
192
192
  
193
 
  if(di.master.empty())
 
193
  if(di.masters.empty())
194
194
    return "Domain '"+domain+"' is not a slave domain (or has no master defined)";
195
195
 
196
 
  Communicator.addSuckRequest(domain,di.master);
197
 
  return "Added retrieval request for '"+domain+"' from master "+di.master;
 
196
  random_shuffle(di.masters.begin(), di.masters.end());
 
197
  Communicator.addSuckRequest(domain, di.masters.front());
 
198
  return "Added retrieval request for '"+domain+"' from master "+di.masters.front();
198
199
}
199
200
 
200
201
string DLNotifyHostHandler(const vector<string>&parts, Utility::pid_t ppid)