In the event of a nuclear attack I'm sure the internet will still be working. The internet is really redundant and I'm there are things in place to ensure that the internet doesn't crash during a nuclear attack on an area.
The internet consists of millions upon millions of computers and data centers around the world. So it would take a huge nuclear attack on the whole world for it to affect the whole internet.