On 7 December 1941, during the attack on Pearl Harbor, "Dunlap" was at sea bound for Pearl Harbor with TF 8 after ferrying planes to Wake Island. She entered Pearl Harbor next day and patrolled in the Hawaiian area until 11 January 1942 when she sortied with TF 8 for air strikes on the Marshal Islands, returning 5 February. After taking part in the raid on Wake Island of 24 February, she continued to patrol in the Hawaiian area until 22 March, then escorted convoys between various ports on the west coast until returning to Pearl Harbor 22 October 1942.