Updating the solution for this issue on second encounter as it may help someone out there; It is probably a problem that is occurring due to the internet proxy settings (whose influence is but plausible) and/or the DNS servers configured with my/your internet connection.
If I configure 8.8.8.8 for my DNS, everything works fine. If using Docker, painless fix is to create the file /etc/docker/daemon.json and insert the lines below.
{
"dns": ["10.0.0.2", "8.8.8.8"]
}
Where 10.0.0.2 is the first DNS server your machine requests records from, and 8.8.8.8 is the fallback DNS server, google in this case.