Is there a TTL support in GoLang DNS, or if it was implemented in a later release, please suggest. Thanks,
On Saturday, October 8, 2016 at 9:45:17 AM UTC-4 sandro....@gmail.com wrote: > > > Il giorno mercoledì 13 aprile 2016 22:45:48 UTC+2, Ian Lance Taylor ha > scritto: >> >> On Wed, Apr 13, 2016 at 12:31 PM, fyodor <stefank...@gmail.com> wrote: >> > Is there a way to obtain TTL information from through the DNS lookup >> methods >> > in the net package? >> >> Not at present. >> >> > I'm implementing a component that uses SRV records from a DNS server >> and i >> > noticed TTL number aren't returned with the net.LookupSRV function. >> > >> > >> https://github.com/golang/go/blob/0104a31b8fbcbe52728a08867b26415d282c35d2/src/net/dnsclient.go#L187 >> >> > >> > The TTL information is in the DNS header returned in the response but i >> > can't see a way just getting the header. >> > >> > https://github.com/golang/go/blob/master/src/net/dnsmsg.go#L126 >> > >> > Would it be worth my while to implement something for this and submit >> this >> > for inclusion in a forthcoming release of Go? >> >> It seems reasonable to me. You should your API proposal to golang-dev >> before you much time into it. >> > > Did anything move on this front ? I've the same problem, in look for a TTL > value for my lookups... > > --strk; > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/2a503fba-0fe5-401c-b947-27a4c2824468n%40googlegroups.com.