Post lxd-to-incus, OVN and DNS domain

Recently migrated with the lxd-to-incus and running some instances with docker and utilizing OVN networking. After the migration I didn’t remove lxd package (but I did disable it in snap)

Been having a few strange issues in some docker containers which have a user created network.

Similar to this issue:
ssl - My Docker container has no access to some websites(TLS Handshake) how can I troubleshoot this? - Stack Overflow

E.g.
This works:

curl https://httpbin.org/ip

But this fails:

curl https://github.com

Moving the incus instance to a bridged nic and everything works.

When on OVN though I’ve noticed there’s still a reference to search lxd in /etc/resolv.conf but when bridged it’s search .

Is there something I need to configure with the OVN in incus or resolvectl or is the lxd domain name still valid and likely something else is going on?

You can try setting dns.domain on the OVN network, that should cause the search domain to change. I’m not sure why that’d explain one domain working and the other not though.

Ok. That did change search domain so will add that to the pre-migration OVN networks!

But it doesn’t look like that was the actual problem, the MTU value in the container for the interface was still 1500. Changed to 1442 (the same as the OVN network) and its all good now