Fail to get endpoints

I’ve setup an ubuntu 16.04 file server through the remote setup method.

I get this when testing rclone:

rclone ls remote:
2017/04/14 07:57:20 Failed to create file system for "photos:": failed to get endpoints: Get https://drive.amazonaws.com/drive/v1/account/endpoint: dial tcp: lookup drive.amazonaws.com on 127.0.0.53:53: no such host

Curl resolves this host just fine:

curl -v https://drive.amazonaws.com/drive/v1/account/endpoint
*   Trying 176.32.103.13...
* Connected to drive.amazonaws.com (176.32.103.13) port 443 (#0)
* found 173 certificates in /etc/ssl/certs/ca-certificates.crt
* found 692 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
* 	 server certificate verification OK
* 	 server certificate status verification SKIPPED
* 	 common name: cdws.us-east-1.amazonaws.com (matched)
* 	 server certificate expiration date OK
* 	 server certificate activation date OK
* 	 certificate public key: RSA
* 	 certificate version: #3
* 	 subject: C=US,ST=Washington,L=Seattle,O=Amazon.com\, Inc.,CN=cdws.us-east-1.amazonaws.com
* 	 start date: Thu, 08 Sep 2016 00:00:00 GMT
* 	 expire date: Wed, 18 Oct 2017 23:59:59 GMT
* 	 issuer: C=US,O=Symantec Corporation,OU=Symantec Trust Network,CN=Symantec Class 3 Secure Server CA - G4
* 	 compression: NULL
* ALPN, server did not agree to a protocol
> GET /drive/v1/account/endpoint HTTP/1.1
> Host: drive.amazonaws.com
> User-Agent: curl/7.50.1
> Accept: */*
> 
< HTTP/1.1 401 Unauthorized
< Server: Server
< Date: Fri, 14 Apr 2017 14:02:01 GMT
< Content-Type: application/json
< Content-Length: 37
< Connection: keep-alive
< x-amzn-RequestId: eebc6635-211a-11e7-9b24-f17631972f77
< x-amzn-ErrorType: NotAuthorizedException:http://internal.amazon.com/coral/com.amazon.coral.service/
< Cache-Control: no-store
< Pragma: no-cache
< Vary: User-Agent
< 
* Connection #0 to host drive.amazonaws.com left intact
{"Message":"No Auth Method Provided"}

I believe this might be related to the local dns settings on the server as my desktop machines can use rclone without issue but wondering if anyone has come across this behaviour with rclone in the past?

Cheers,
MY

N/m - found this: https://github.com/ncw/rclone/issues/683

I’ll try some of these workarounds.