I am accessing a certain server in my organization's internal network from my browser fine. But when i try to make the same call from a Go code in Atom. it throws the below error.
url := "http://server:port/getcall"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
<body><h1>DNS error</h1>
<p>DNS error (the host name of the page you are looking for does not exist)<br><br>
Please check that the host name has been spelled correctly.<br></p>
what could it be ? i tried setting and removing proxies which isnt working.