For example, two regions exist, US and EU.
-EU: o.myobjects.eu
-US: o.myobjects.us
+ EU: o.myobjects.eu
+ US: o.myobjects.us
A global domain o.myobjects.com exists.
Bucket 'foo' exists in the region EU and 'bar' in US.
-foo.o.myobjects.com will return a CNAME to foo.o.myobjects.eu
-bar.o.myobjects.com will return a CNAME to foo.o.myobjects.us
+ foo.o.myobjects.com will return a CNAME to foo.o.myobjects.eu
+ bar.o.myobjects.com will return a CNAME to foo.o.myobjects.us
The HTTP Remote Backend from PowerDNS is used in this case: http://doc.powerdns.com/html/remotebackend.html
# Configuration
## PowerDNS
-launch=remote
-remote-connection-string=http:url=http://localhost:6780/dns
+ launch=remote
+ remote-connection-string=http:url=http://localhost:6780/dns
## PowerDNS backend
Usage for this backend is showed by invoking with --help. See rgw-pdns.conf.in for a configuration example
Should return something like:
-{
- "result": [
- {
- "content": "foo.o.myobjects.eu",
- "qtype": "CNAME",
- "qname": "foo.o.myobjects.com",
- "ttl": 60
- }
- ]
-}
+ {
+ "result": [
+ {
+ "content": "foo.o.myobjects.eu",
+ "qtype": "CNAME",
+ "qname": "foo.o.myobjects.com",
+ "ttl": 60
+ }
+ ]
+ }
## WSGI
You can run this backend directly behind an Apache server with mod_wsgi
Afterwards point PowerDNS to localhost on port 80:
-launch=remote
-remote-connection-string=http:url=http://localhost/dns
\ No newline at end of file
+ launch=remote
+ remote-connection-string=http:url=http://localhost/dns