Restore from a server image that contain discourse, but rebuild error

I have change the nameserver in resolv.conf and hosts, but it doesn’t work