diff --git a/daemon/libnetwork/sandbox.go b/daemon/libnetwork/sandbox.go index 4d0236f2e4..8f5e531188 100644 --- a/daemon/libnetwork/sandbox.go +++ b/daemon/libnetwork/sandbox.go @@ -348,10 +348,8 @@ func (sb *Sandbox) populateNetworkResources(ctx context.Context, ep *Endpoint) ( // Populate DNS records. n := ep.getNetwork() - if !n.getController().isAgent() { - if !n.getController().isSwarmNode() || n.Scope() != scope.Swarm || !n.driverIsMultihost() { - n.updateSvcRecord(context.WithoutCancel(ctx), ep, true) - } + if !n.getController().isSwarmNode() || n.Scope() != scope.Swarm || !n.driverIsMultihost() { + n.updateSvcRecord(context.WithoutCancel(ctx), ep, true) } if err := ep.addDriverInfoToCluster(); err != nil {