Fix vm code with no dns