If it can't resolve localhost that suggests some other problem: it ought to be able to do that without the network.
If it can't resolve localhost that suggests some other problem: it ought to be able to do that without the network.