Glad things worked out for you. I'm guessing the power glitch probably zapped the settings related to DHCP and they didn't get fixed until the lease got renewed. It's nice when things fix themselves: count yourself lucky!
Best wishes,
--Ed--