I have created a raw dns resolver (ie. it creates and decodes the raw datagrams) that resolves several different types of dns records (MX,CNAME,SOA,RP,etc). It is my first attempt at truly portable code and I was wondering if anyone would be kind enough to compile it on another compiler/system (I'm using lcc-win) to see if it is indeed portable.
The only change needed ( I hope!) before compiling is to alter the DNS_SERVER constant at the top of nslook.c to the ip address of your dns server.
Any comments on the code would also be welcome.
Thanks a lot in advance.
SEE CODE ATTACHED TWO MESSAGES DOWN