Skip to content

Commit

Permalink
lxd/network/openvswitch/ovn: Lower case DNS names
Browse files Browse the repository at this point in the history
Otherwise if the instance name includes upper case characters it won't be resolvable.

Signed-off-by: Thomas Parrott <[email protected]>
  • Loading branch information
tomponline authored and stgraber committed Aug 16, 2022
1 parent 1aa4470 commit 8438e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/network/openvswitch/ovn.go
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ func (o *OVN) LogicalSwitchPortSetDNS(switchName OVNSwitch, portName OVNSwitchPo
}

cmdArgs := []string{
fmt.Sprintf(`records={"%s"="%s"}`, dnsName, strings.Join(dnsIPs, " ")),
fmt.Sprintf(`records={"%s"="%s"}`, strings.ToLower(dnsName), strings.Join(dnsIPs, " ")),
fmt.Sprintf("external_ids:%s=%s", ovnExtIDLXDSwitch, switchName),
fmt.Sprintf("external_ids:%s=%s", ovnExtIDLXDSwitchPort, portName),
}
Expand Down

0 comments on commit 8438e91

Please sign in to comment.