Feature or enhancement request details
For the usecases where we'd like to autodiscover containers' IPs using built-in DNS server we should be able to reach it from outside of the host.
Currently however this is hardcoded in https://github.com/apple/container/blob/main/Sources/Helpers/APIServer/APIServer%2BStart.swift to:
static let listenAddress = "127.0.0.1"
We then see two DNS servers, 1053 and 2053, both of which listen on 127.0.0.1
There seems to be a switch during DNS domain creation, which does the magic of being able to resolve on specified IP locally:
sudo container system dns create --localhost 192.168.1.64 container-dns
nslookup -port=2053 example.container-dns 192.168.1.64
Server: 192.168.1.64
Address: 192.168.1.64#2053
Name: example.container-dns
Address: 192.168.65.13
But doesn't work from another machine, actually it is even worse as that BLOCKS incoming SSH/screen sharing connections? Probably misunderstanding what the option is for.
Code of Conduct