Browse Source

include network on extcient dns update

Matthew R Kasun 2 years ago
parent
commit
574583b3b1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mq/publishers.go

+ 2 - 2
mq/publishers.go

@@ -316,8 +316,8 @@ func PublishExtCLientDNS(client *models.ExtClient) error {
 func PublishExtClientDNSUpdate(old, new models.ExtClient, network string) error {
 	dns := models.DNSUpdate{
 		Action:  models.DNSReplaceName,
-		Name:    old.ClientID,
-		NewName: new.ClientID,
+		Name:    old.ClientID + "." + old.Network,
+		NewName: new.ClientID + "." + new.Network,
 	}
 	if err := PublishDNSUpdate(network, dns); err != nil {
 		return err