Power went out and now my router doesn't give any internet

First, hook up a machine directly to the modem. Does it get internet access? If yes, then the problem is the DHCP server in your router. If it doesn't, then maybe the power surge hurt your modem.

That test will tell you for sure if your router really does have internet access, because your computer will be hooked up the same way the router is, right to the modem, except that you can test your internet connection on it now.

Look up the D-Link support to see what your settings should be. Also, you can do a hard reset that will reset the router to factory defaults and start over.

It really just sounds like your DHCP settings are messed up and not that the router is bad. If you do a full reset and start the router settings over and still have the same issue, then it may be the router. Try this and let us know.