I am working on a project with android phones(language C) and I am using getaddrinfo() to check that the phone is able to speak to the nameserver assigned to it. But I think getaddrinfo is reading the cached values from resolv.conf. How can I send out dns query everytime I use getaddrinfo(). A related question : How often is the resolv.conf file updated? Note : If I am wrong in anything please point me out, I will correct it.
Thank you