Client side implementation of DNS protocol