You probably have a DSL modem, not a DNS modem.
Do you have anything else using the internet at the same time?
File sharing programs have been known to use up so much bandwidth, that mIRC is unable to connect with the server in the time allocated.
Also, the server might just be busy, especially if it's on a large network (eg: Undernet).