Closed fhartojo closed 5 years ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/168791798
The labels on this github issue will be updated when the story is started.
Seems like I've opened this issue on a wrong repo. Closing.
@fhartojo This is the correct repo to submit this issue.
api.dev.cfdev.sh
shouldn't resolve to 127.0.0.53. This is a real DNS address that you need the public internet to resolve. Furthermore, since there are multiple subdomains that also need to be resolved, injecting entries into your host file isn't enough.
Is it possible that your laptop wasn't connected to the public internet at the time? Next steps should be finding out why resolving api.dev.cfdev.sh
yields nothing for you.
Thanks for responding.
So, I tried looking up (i.e., nslookup) api.dev.cfdev.sh on a couple of different hosts and they both point to 10.144.0.34, which I think is one of the interfaces brought up during "cf dev start", is that right? Since it's a 10.* address I don't think it's going to be available publicly, yes?
Anyway, I added these entries to /etc/hosts:
10.144.0.34 api.dev.cfdev.sh 10.144.0.34 login.dev.cfdev.sh 10.144.0.34 ssh.dev.cfdev.sh 10.144.0.34 doppler.dev.cfdev.sh 10.144.0.34 uaa.dev.cfdev.sh
and now "cf dev start" completed successfully. But, when I tried to deploy MySQL as a test it failed the first time because it couldn't resolve p-mysql.dev.cfdev.sh. Once I added that to /etc/hosts it completed successfully. So, what I think I need to do is to configure dnsmasq to resolve *.dev.cfdev.sh to 10.144.0.34. Does that sound alright?
Thanks.
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/168795255
The labels on this github issue will be updated when the story is started.
I think is one of the interfaces brought up during "cf dev start", is that right?
Yes
Since it's a 10.* address I don't think it's going to be available publicly, yes?
Yes
So, what I think I need to do is to configure dnsmasq to resolve *.dev.cfdev.sh to 10.144.0.34. Does that sound alright?
This might be true in your case, but we don't expect this by default for our users. If it makes sense why cf dev start
cannot resolve the domain using your networking setup (such as running in an offline environment), then you should pursue this option.
Sorry for the late response.
So, I found out several things:
Apparently all, at least the ones I've tried, public DNS servers would respond with 10.144.0.34 to inquiries on *.dev.cfdev.sh. I've tried Google, my ISP, Cloudflare amongst others. They all work.
What doesn't work, however, is my WiFi router (i.e., Google WiFi) which acts as my local DNS as per the usual practice. When I point nslookup to the router as the server it fails to resolve *.dev.cfdev.sh. I don't know why that is at this point and I'll continue to investigate.
For now how I'm fixing the issue on my Ubuntu 18.04 laptop is the following:
sudo service systemd-resolved stop sudo systemctl disable systemd-resolved sudo rm -f /etc/resolv.conf // Edit /etc/NetworkManager/NetworkManager.conf and add a line in the "[main]" section that says "dns=dnsmasq". // Add a file under /etc/NetworkManager/dnsmasq.d that ends with a ".conf"---I called mine dnsmasq-dev.cfdev.sh.conf---and add a line in it that says "address=/dev.cfdev.sh/10.144.0.34". sudo service NetworkManager restart
I think that's all. I have to disable systemd-resolved because I have a hard time making it play nice with NetworkManager and dnsmasq.
Anyhow, it's not ideal, but it works. If I manage to figure out why Google WiFi doesn't seem to respond to inquiries on *.dev.cfdev.sh, I'll update.
Thanks for all your help.
CF newbie here. "cf dev start" consistently fails on my laptop. Some details:
cf: v11.2.0 cf-mysql: 36.19.0
8-core CPU (i7-8565U), 32GB RAM, 512GB NVMe SSD, Ubuntu 18.04 w/ latest updates.