Ignore:
Timestamp:
Aug 24, 2008, 6:44:33 AM (16 years ago)
Author:
geofft
Message:

Add "passup" and "parent" options to the DNS config, to allow forwarding
certain names as CNAME to a parent domain. This was implemented for the Vista
activation server SRV record, but can be used to pass on any well-known
reserved names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-dns/code/dnsserver.py

    r851 r913  
    8686                                                ttl, self.soa, auth=True))
    8787            else:
     88                if 'passup' in dir(config.dns) and host in config.dns.passup:
     89                    record = dns.Record_CNAME('%s.%s' % (host, config.dns.parent), ttl)
     90                    return defer.succeed((
     91                        [dns.RRHeader(name, dns.CNAME, dns.IN, ttl, record, auth=True)],
     92                        [], []))
     93
    8894                if host:
    8995                    value = invirt.database.Machine.get_by(name=host)
Note: See TracChangeset for help on using the changeset viewer.