Actually it would be something simple, maybe a few lines of code. it would be something like this

sockwrite dnsserver query=mirc.com querytype=MX

And the server would reply with the answer. I just cant figure out the syntax :X And yes ive tried google etc