diff --git a/client.go b/client.go index 058bb8e..7781504 100644 --- a/client.go +++ b/client.go @@ -71,7 +71,8 @@ func (c *Client) ZonesByKeyword(ctx context.Context, keyword string) ([]Zone, er page = root.Meta.Pagination.NextPage } - for _, z := range zones { + for i := range zones { + z := &zones[i] z.c = c } diff --git a/zone.go b/zone.go index 4213aac..c57429f 100644 --- a/zone.go +++ b/zone.go @@ -97,7 +97,8 @@ func (z *Zone) Records(ctx context.Context) ([]Record, error) { page = root.Meta.Pagination.NextPage } - for _, r := range records { + for i := range records { + r := &records[i] r.c = z.c r.zoneID = r.ID }