Skip to content

Commit

Permalink
feat(NET-591): allow generic DNS entries
Browse files Browse the repository at this point in the history
  • Loading branch information
pwilson77 committed Sep 11, 2023
1 parent 1e2fae0 commit 0b382af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion logic/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func SetDNS() error {
return err
}
for _, entry := range dns {
hostfile.AddHost(entry.Address, entry.Name+"."+entry.Network)
hostfile.AddHost(entry.Address, entry.Name)
}
}
if corefilestring == "" {
Expand Down
2 changes: 1 addition & 1 deletion mq/publishers.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func PublishDeleteExtClientDNS(client *models.ExtClient) error {
func PublishCustomDNS(entry *models.DNSEntry) error {
dns := models.DNSUpdate{
Action: models.DNSInsert,
Name: entry.Name + "." + entry.Network,
Name: entry.Name,
//entry.Address6 is never used
Address: entry.Address,
}
Expand Down

0 comments on commit 0b382af

Please sign in to comment.