Browse Source

add newAddress to DNSUpdate struct

Matthew R Kasun 2 years ago
parent
commit
0c470daf3c
1 changed files with 5 additions and 4 deletions
  1. 5 4
      models/dnsEntry.go

+ 5 - 4
models/dnsEntry.go

@@ -19,10 +19,11 @@ const (
 
 
 // DNSUpdate data for updating entries in /etc/hosts
 // DNSUpdate data for updating entries in /etc/hosts
 type DNSUpdate struct {
 type DNSUpdate struct {
-	Action  DNSUpdateAction
-	Name    string
-	NewName string
-	Address string
+	Action     DNSUpdateAction
+	Name       string
+	NewName    string
+	Address    string
+	NewAddress string
 }
 }
 
 
 // DNSEntry - a DNS entry represented as struct
 // DNSEntry - a DNS entry represented as struct