Re: [go-nuts] Centos - golang 1.6/1.7 - dial tcp i/o timeout

2016-10-17 Thread Ian Lance Taylor
On Mon, Oct 17, 2016 at 8:26 AM, wrote: > Is there a way in Golang to cache the response from the DNS server? Java > apps by default cache the DNS info until the app gets restarted. You can do DNS lookups yourself using `net.LookupHost` and friends. Ian > On Sunday, October 16, 2016 at 5:01:44

Re: [go-nuts] Centos - golang 1.6/1.7 - dial tcp i/o timeout

2016-10-17 Thread roberto . devet
Is there a way in Golang to cache the response from the DNS server? Java apps by default cache the DNS info until the app gets restarted. On Sunday, October 16, 2016 at 5:01:44 PM UTC-5, Ian Lance Taylor wrote: > > On Sun, Oct 16, 2016 at 9:10 AM, > > wrote: > > > > Getting dail tcp error whi

Re: [go-nuts] Centos - golang 1.6/1.7 - dial tcp i/o timeout

2016-10-16 Thread Ian Lance Taylor
On Sun, Oct 16, 2016 at 9:10 AM, wrote: > > Getting dail tcp error while calling httpClient.Get or httpClient.Post > > > http client settings: > httpClient = &http.Client{ > Timeout: 30 * time.Second, > } > > Error: > > dial tcp: lookup on xx.xx.xx.xxx:53: dial udp xx.xx.xx.xxx:53: i/o timeout >

[go-nuts] Centos - golang 1.6/1.7 - dial tcp i/o timeout

2016-10-16 Thread subbagudipalli
Getting dail tcp error while calling httpClient.Get or httpClient.Post http client settings: httpClient = &http.Client{ Timeout: 30 * time.Second, } Error: dial tcp: lookup on xx.xx.xx.xxx:53: dial udp xx.xx.xx.xxx:53: i/o timeout CentOS version: CentOS Linux release 7.2.1511 (Core) can