Skip to content

Instantly share code, notes, and snippets.

@anynines-gist
Last active May 29, 2019 12:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anynines-gist/8463091 to your computer and use it in GitHub Desktop.
Save anynines-gist/8463091 to your computer and use it in GitHub Desktop.
Use Bosh to manually change the IP of your Cloud Foundry domains for a second deployment
# 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