I modified the TTL value for a particular Host Record of type A in the dns management --right click that record-->properties--> changed TTL vale. But when I called the DNSQuery() function to retieve the modified TTL value of that record I am getting the same default TTL value.
But when I viewed that record's TTL value in the dns management it is displaying the modified value only..
After changing the TTL of a particular dns record do I need to restart DNS service??
plz correct me if I missed anything step while changing TTL.......
thanks for your concern. Steps I followed:
changed ttl for a RR from 20minutes to 24 minutes, after more than 20min I called the below query
ulRet = DnsQuery( hName.c_str(), DNS_TYPE_A, DNS_QUERY_BYPASS_CACHE, pSrvList, &pHost, NULL ); dnsTTL=pHost->dwTtl; cout<<"Current DNS TTL value"<<dnsTTL<<"\n";
but still Iam getting the output as Current DNS TTL value 1200( means 20 minutes in sec) instead of 1440 sec(means 24 min)