With a DVI adapter, e.g. VGA connectors or HDMI connectors can be adapted to DVI. Please make sure that you select a compatible analog adapter for an analog source and use a digital DVI adapter for a digital source.
Therefore, when purchasing the DVI adapter, make sure that it is a DVI-D, DVI-I or DVI-A connector. A DVI-I adapter or a DVI-D adapter supports a digital signal, while a DVI-A adapter only supports an analog signal.