So I have a split DNS setup in Tailscale that has a record pointing the Tailscale IP of my pi to the raspberrypi5.local domain, that works just fine for everything except the LXD terminal? When I open the LXD UI I can do everything just fine including making instances etc. The only thing that doesn't work is the terminal and console, when I click them I see The connection was closed abnormally, e.g., without sending or receiving a Close control frame which is really weird because it doesn't happen when I access the UI directly from the Tailscale IP address. I checked the console and there are a lot of websocket errors WebSocket connection to 'wss://raspberrypi5.local:8443/1.0/operations/d4d95b05-aa0e-4286-b11c-5ffa4e735194/websocket?secret=0a583d3c6852bdc4baddfaaf5a8ccde920280e68dce67df62c2078e5ad877a4c' failed:. I don't know why the issue is happening since all other apps using websockets and the Tailscale domain work perfectly fine.
Steps to reproduce
Create a Split DNS record pointing somename.somedomain to the Tailscale IP of the machine
Open the Web UI on https://somename.somedomain:8443
Try to open the Terminal
Information to attach
[ ] Any relevant kernel output (dmesg)
[ ] Container log (lxc info NAME --show-log)
[ ] Container configuration (lxc config show NAME --expanded)
[ ] Main daemon log (at /var/log/lxd/lxd.log or /var/snap/lxd/common/lxd/logs/lxd.log)
[ ] Output of the client with --debug
[ ] Output of the daemon with --debug (alternatively output of lxc monitor while reproducing the issue)
Required information
Issue description
So I have a split DNS setup in Tailscale that has a record pointing the Tailscale IP of my pi to the
raspberrypi5.local
domain, that works just fine for everything except the LXD terminal? When I open the LXD UI I can do everything just fine including making instances etc. The only thing that doesn't work is the terminal and console, when I click them I seeThe connection was closed abnormally, e.g., without sending or receiving a Close control frame
which is really weird because it doesn't happen when I access the UI directly from the Tailscale IP address. I checked the console and there are a lot of websocket errorsWebSocket connection to 'wss://raspberrypi5.local:8443/1.0/operations/d4d95b05-aa0e-4286-b11c-5ffa4e735194/websocket?secret=0a583d3c6852bdc4baddfaaf5a8ccde920280e68dce67df62c2078e5ad877a4c' failed:
. I don't know why the issue is happening since all other apps using websockets and the Tailscale domain work perfectly fine.Steps to reproduce
somename.somedomain
to the Tailscale IP of the machinehttps://somename.somedomain:8443
Information to attach
dmesg
)lxc info NAME --show-log
)lxc config show NAME --expanded
)lxc monitor
while reproducing the issue)