Proxy fun
I create an Ubuntu 18.10 virtual machine on my Windows 10 host using Vagrant with VMware Workstation 15.
The VM appears to work fine, including most network access.
But for one important host I have no luck:
$ ping -c 4 production.cloudflare.docker.com
ping: production.cloudflare.docker.com: Temporary failure in name resolution
(When I do the very same thing in Cygwin on the Windows host, it works just fine.)
What should be the reason? DNS nameservers!
However, the one that systemd-resolve --status tells me it is using ("Current DNS Server: 8.8.4.4" on eth0, the only interface with considerable RX and TX amounts) works alright when I try it explicitly:
$ dig @8.8.4.4 production.cloudflare.docker.com
; <<>> DiG 9.11.4-3ubuntu5.1-Ubuntu <<>> @8.8.4.4 production.cloudflare.docker.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45235
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 1
[...]
production.cloudflare.docker.com. 117 IN A 104.18.122.25
production.cloudflare.docker.com. 117 IN A 104.18.121.25
production.cloudflare.docker.com. 117 IN A 104.18.125.25
production.cloudflare.docker.com. 117 IN A 104.18.124.25
production.cloudflare.docker.com. 117 IN A 104.18.123.25
but when I go through Ubuntu's local proxy, the query fails:
$ dig production.cloudflare.docker.com
; <<>> DiG 9.11.4-3ubuntu5.1-Ubuntu <<>> production.cloudflare.docker.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 60815
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
[...]
;; SERVER: 127.0.0.53#53(127.0.0.53)
Apparently, 127.0.0.53 is not doing what I think it should. (Note I'm a networking newbie.)
What am I missing?
I am not even sure whether this is more an Ubuntu question or a VMware question. Or a Vagrant question maybe?
Shudder.