Hi,
confreg 0x2142
Where did you enter this command?
what you see after look like the symptom you see when entering wrong command in privileged mode and DNS lookup is not disabled( with no ip domain-lookup command) so the IOS thinks this is a hostname you want to telnet to and he tries to translate to IP by contacting DNS servers.
To recover a password and enter ROMMON you have to issue break sequence at startup and then in ROMMON you can change config register setting to 2142 and then reset.
Regards.
Alain.
Don't forget to rate helpful posts.