We explore the use of the cosmic infrared background (CIB) as a tracer of the large scale structures for cross-correlating with the cosmic microwave background (CMB) and exploit the integrated Sachs–Wolfe (ISW) effect. We used an improved linear CIB model from our previous work and derived the theoretical CIB×ISW cross-correlation for different Planck HFI frequencies (217, 353, 545 and 857 GHz) and IRAS (3000 GHz). As expected, we predict a positive cross-correlation between the CIB and the CMB whose amplitude decreases rapidly at small scales. We perform a signal-to-noise ratio (S/N) analysis of the predicted cross-correlation. In the ideal case when the cross-correlation is obtained over 70% (40%) of the sky without residual contaminants (e.g. galactic dust) in maps, the S/N ranges from 4.2 to 5.6 (3.2 to 4.3); the highest S/N comes from 857 GHz. A Fisher matrix analysis shows that an ISW signal detected with a S/N this high on the 40% sky can considerably improve the constraints on the cosmological parameters; constraints on the equation of state of the dark energy especially are improved by 80%. We then performed a more realistic analysis considering the effect of residual galactic dust contamination in CIB maps. We calculated the dust power spectra for different frequencies and sky fractions that dominate the CIB power spectra at the lower multipoles we are interested in. Considering a conservative 10% residual level of galactic dust in the CIB power spectra, we observe that the S/N drops drastically, which makes it very challenging to detect the ISW. To determine the capability of current maps to detect the ISW effect through this method, we measured the cross-correlation of the CIB and the CMB Planck maps on the so-called GASS field, which covers an area of ∼11% in the southern hemisphere. We find that with such a small sky fraction and the dust residuals in the CIB maps, we do not detect any ISW signal, and the measured cross-correlation is consistent with zero. To avoid degrading the S/N for the ISW measurement by more than 10% on the 40% sky, we find that the dust needs to be cleaned up to the 0.01% level on the power spectrum.