Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Use Bosh to manually change the IP of your Cloud Foundry domains for a second deployment

View bosh_sql_snippet
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# First insert the domains to the powerdns database used by bosh
 
insert into domains(name,type) values('a9s.eu','NATIVE');
insert into domains(name,type) values('a9sapp.eu','NATIVE');
 
# Then insert the required dns settings
# You need to replace the domain name and the domain_id. We're using *.de.a9s.eu as Cloud Foundry
# domain and *.de.a9sapp.eu as app domain.
 
insert into records(name,type,content,ttl,change_date,domain_id)
values('<Your domain name>','A','<YOUR IP>',300,1386843415,<ID of your domain>);
insert into records(name,type,content,ttl,change_date,domain_id)
values('*.de.a9s.eu','A','<YOUR IP>',300,1386843415,<ID of your domain>);
insert into records(name,type,content,ttl,change_date,domain_id)
values('a9s.eu','SOA','localhost hostmaster@localhost 0 10800 604800 30',300,1386843415,<ID of your domain>);
 
insert into records(name,type,content,ttl,change_date,domain_id)
values('de.a9sapp.eu','A','<YOUR IP>',300,1386843415,<ID of your second domain>);
insert into records(name,type,content,ttl,change_date,domain_id)
values('*.de.a9sapp.eu','A','<YOUR IP>',300,1386843415,<ID of your second domain>);
insert into records(name,type,content,ttl,change_date,domain_id)
values('a9sapp.eu','SOA','localhost hostmaster@localhost 0 10800 604800 30',300,1386843415,<ID of your second domain>);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.