diff --git a/KeyVault.Acmebot/KeyVault.Acmebot.csproj b/KeyVault.Acmebot/KeyVault.Acmebot.csproj
index 5708018..ef94b77 100644
--- a/KeyVault.Acmebot/KeyVault.Acmebot.csproj
+++ b/KeyVault.Acmebot/KeyVault.Acmebot.csproj
@@ -4,7 +4,7 @@
v4
-
+
diff --git a/KeyVault.Acmebot/Providers/Route53Provider.cs b/KeyVault.Acmebot/Providers/Route53Provider.cs
index cbf2583..5437fff 100644
--- a/KeyVault.Acmebot/Providers/Route53Provider.cs
+++ b/KeyVault.Acmebot/Providers/Route53Provider.cs
@@ -28,9 +28,22 @@ public Route53Provider(Route53Options options)
public async Task> ListZonesAsync()
{
- var zones = await _amazonRoute53Client.ListHostedZonesAsync();
+ var zones = new List();
- return zones.HostedZones.Select(x => new DnsZone(this) { Id = x.Id, Name = x.Name.TrimEnd('.') }).ToArray();
+ ListHostedZonesResponse response = null;
+
+ do
+ {
+ response = await _amazonRoute53Client.ListHostedZonesAsync(new ListHostedZonesRequest
+ {
+ Marker = response?.NextMarker
+ });
+
+ zones.AddRange(response.HostedZones);
+
+ } while (response.IsTruncated);
+
+ return zones.Select(x => new DnsZone(this) { Id = x.Id, Name = x.Name.TrimEnd('.') }).ToArray();
}
public Task CreateTxtRecordAsync(DnsZone zone, string relativeRecordName, IEnumerable values)