Narrative:

We were talking to patuxent approach and proceeding direct to the snow hill VOR while trying to avoid the restricted areas that exist around wallops flight facility. While running checklists; my student and I got nose down trying to work with the autopilot; and when I looked up we were about to cross into wallops' class D. I queried patuxent approach if we were cleared into the class D. By the time they responded to remain clear; we had penetrated the class D airspace. I immediately commanded the autopilot to turn us out of the airspace (we were inside for less than 20 seconds). After exiting we used the heading bug and continued to remain clear.in hindsight; I let a student's question distract me from maintaining situational awareness. Also; I should have disconnected the autopilot and flown a hard right turn instead of querying ATC for a clearance. I will pay much closer attention outside of the aircraft in the future.

Google
 

Original NASA ASRS Text

Title: An Instructor Pilot and his Private rated Student both allowed their attention to wander examining their destination airport information on their MFD. When they ultimately returned to their navigation display they realized they had entered a Class D without a clearance.

Narrative: We were talking to Patuxent Approach and proceeding direct to the Snow Hill VOR while trying to avoid the restricted areas that exist around Wallops Flight facility. While running checklists; my student and I got nose down trying to work with the autopilot; and when I looked up we were about to cross into Wallops' Class D. I queried Patuxent Approach if we were cleared into the Class D. By the time they responded to remain clear; we had penetrated the Class D airspace. I immediately commanded the Autopilot to turn us out of the airspace (we were inside for less than 20 seconds). After exiting we used the heading bug and continued to remain clear.In hindsight; I let a student's question distract me from maintaining situational awareness. Also; I should have disconnected the autopilot and flown a hard right turn instead of querying ATC for a clearance. I will pay much closer attention outside of the aircraft in the future.

Data retrieved from NASA's ASRS site as of April 2012 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.