diff --git a/pkg/vip/dns.go b/pkg/vip/dns.go index 63d15c03..ef918f77 100644 --- a/pkg/vip/dns.go +++ b/pkg/vip/dns.go @@ -35,6 +35,13 @@ func (d *ipUpdater) Run(ctx context.Context) { ip, err := lookupHost(d.vip.DNSName()) if err != nil { log.Warnf("cannot lookup %s: %v", d.vip.DNSName(), err) + if d.vip.IsDDNS() { + // if ddns and can't resolve address + // panic and restart the pod + // as renew and rebind are not working + // after lease expires + panic(err.Error()) + } // fallback to renewing the existing IP ip = d.vip.IP() }