Skip to content

Commit

Permalink
chore: Switch Server IP
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenKirschbaum committed Mar 16, 2024
1 parent c2f0392 commit c9a1f9e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/constructs/CommonRecords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ export class E12MainRecord extends Construct {
zone: props.zone,
ttl: DEFAULT_TTL,
recordName: props.name,
target: RecordTarget.fromIpAddresses(E12_OLD_SERVER_IPV4),
target: RecordTarget.fromIpAddresses(MAIN_01_NUE_NC_IPV4),
});
new AaaaRecord(this, 'AAAARecord', {
zone: props.zone,
ttl: DEFAULT_TTL,
recordName: props.name,
target: RecordTarget.fromIpAddresses(E12_OLD_SERVER_IPV6),
target: RecordTarget.fromIpAddresses(MAIN_01_NUE_NC_IPV6),
});
}
}
Expand Down
12 changes: 6 additions & 6 deletions lib/dns-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class DNSStack extends Stack {
Aspects.of(this).add({
visit(node: IConstruct): void {
if (node instanceof CfnRecordSet) {
if(node.resourceRecords?.includes(E12_OLD_SERVER_IPV4) || node.resourceRecords?.includes(E12_OLD_SERVER_IPV6) || node.resourceRecords?.some((v) => v.includes('server.elite12.de'))) {
if(node.resourceRecords?.includes(E12_OLD_SERVER_IPV4) || node.resourceRecords?.includes(E12_OLD_SERVER_IPV6) || node.resourceRecords?.some((v) => v.includes('server.elite12.de')) || node.resourceRecords?.some((v) => v.includes('main-01-nue-nc.elite12.de')) || node.resourceRecords?.includes(MAIN_01_NUE_NC_IPV4) || node.resourceRecords?.includes(MAIN_01_NUE_NC_IPV6)) {
node.ttl = '60';
}
}
Expand Down Expand Up @@ -339,13 +339,13 @@ export class DNSStack extends Stack {
zone,
ttl: DEFAULT_TTL,
recordName: 'ipv4',
target: RecordTarget.fromIpAddresses(E12_OLD_SERVER_IPV4),
target: RecordTarget.fromIpAddresses(MAIN_01_NUE_NC_IPV4),
});
new AaaaRecord(zone, 'Ipv6Record', {
zone,
ttl: DEFAULT_TTL,
recordName: 'ipv6',
target: RecordTarget.fromIpAddresses(E12_OLD_SERVER_IPV6),
target: RecordTarget.fromIpAddresses(MAIN_01_NUE_NC_IPV6),
});
new LetsencryptCAARecord(zone, 'CAA', {
zone
Expand Down Expand Up @@ -446,7 +446,7 @@ export class DNSStack extends Stack {
port: 5732,
weight: 2,
priority: 1,
hostName: 'server.elite12.de'
hostName: 'main-01-nue-nc.elite12.de'
}
]
});
Expand Down Expand Up @@ -501,7 +501,7 @@ export class DNSStack extends Stack {
port: 5732,
weight: 2,
priority: 1,
hostName: 'server.elite12.de'
hostName: 'main-01-nue-nc.elite12.de'
}
]
});
Expand Down Expand Up @@ -564,7 +564,7 @@ export class DNSStack extends Stack {
port: 3955,
weight: 2,
priority: 1,
hostName: 'server.elite12.de'
hostName: 'main-01-nue-nc.elite12.de'
}
]
});
Expand Down

0 comments on commit c9a1f9e

Please sign in to comment.