I have ubuntu 22.04 LTS Server machines in a private network. These machines don't have internet connection. Network manager only wants to give permissions to some domain names which I said. I am new on Network subjects therefore I have a couple of questions:
1 - For example, to update ubuntu packages I want to use the "sudo apt-get update" command. However the command will send requests to http://archive.ubuntu.com and http://security.ubuntu.com addresses. The network manager wants to know these domain names to give them outbound port permissions. For this operations is it enough to say that 2 url and 80 ports to the network manager? Because when I checked archive.ubuntu.com domain with nslookup command it returns me 4 different ip adresses.

Also, for example to use "git clone" command with a public github repository, is it enough to say that give permissions for github.com with 443 port.
3 - As far as I know in a home network, laptop or other appliances use Internet Service Provider address as DNS server address. So in that situation they uses modem address. In that ubuntu machines does not have an ISP. Is it useful to use Google public addresses 8.8.8.8 and 8.8.4.4 as DNS address.