I see you are trying to give a simple tutorial, but please keep in mind there is a wide range of DNS servers/services that may have different or same response which could mean the same thing or completely different.

Would you like to elaborate with what kind of software you are working on and write a bit more detailed tutorial so we can all understand.