Mind wandering (MW) has become a prominent topic of neuroscientific investigation due to the importance of understanding attentional processes in our day‐to‐day experiences. Emerging evidence suggests a critical role for three large‐scale brain networks in MW: the default network (DN), the central executive network (CEN), and the salience network (SN). Advances in analytical methods for neuroimaging data (i.e., dynamic functional connectivity, DFC) demonstrate that the interactions between these networks are not static but dynamically fluctuate over time (Chang & Glover, 2010, NeuroImage, 50(1), 81–98). While the bulk of the evidence comes from studies involving resting‐state functional MRI, a few studies have investigated DFC during a task. Direct comparison of DFC during rest and task with frequent MW is scarce. The present study applies the DFC method to neuroimaging data collected from 30 participants who completed a resting‐state run followed by two runs of sustained attention to response task (SART) with embedded probes indicating a high prevalence of MW. The analysis identified five DFC states. Differences between rest and task were noted in the frequency of three DFC states. One DFC state characterized by negative DN–CEN/SN connectivity along with positive CEN–SN connectivity was more frequently observed during task vs. rest. Two DFC states, one of which was characterized by weaker connectivity between networks, were more frequently observed during rest than task. These findings suggest that the dynamic relationships between brain networks may vary as a function of whether ongoing cognitive activity unfolds in an “unconstrained” manner during rest or is “constrained” by task demands.