+
+ # XXX hack for the transition to two separate dev/prod clusters
+ if 'dev.xvm.mit.edu' in self.domains and name.endswith('prod.xvm.mit.edu'):
+ # import time, sys
+ # print time.localtime(), 'handling prod request', name
+ # sys.stdout.flush()
+
+ # Point the client in the right direction for prod requests.
+ authority = dns.RRHeader('prod.xvm.mit.edu', dns.NS, dns.IN, 3600,
+ dns.Record_NS(name='ns1.prod.xvm.mit.edu', ttl=3600), auth=True)
+ additional = dns.RRHeader('ns1.prod.xvm.mit.edu', dns.A, dns.IN, 3600,
+ dns.Record_A(address='0.0.0.0', ttl=3600), auth=True)
+ return defer.succeed(([], [authority], [additional]))
+