Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Ubuntu 17.04 DNS issues after installing #7
Comments
|
Hi, @Meverhart the intermittent DNS issue isn't normal. Could you please share your /etc/NetworkManager/NetworkManager.conf content? |
Meverhart
commented
Jan 18, 2017
|
[main] [ifupdown] |
|
Hmmm, it looks as it should. Ok, let's try changing the control of dnsmasq to NetworkManager. Please change the contents of /etc/NetworkManager/NetworkManager.conf to this:
Copy the file in /etc/dnsmasq.d/valet to /etc/NetworkManager/dnsmasq.d/valet and finally stop the dnsmasq service and restart the network manager service
If you lose your internet connection, simply reconnect. |
Meverhart
commented
Jan 18, 2017
|
The /etc/dnsmasq.d/valet directory doesn't exist. What file should be there? |
|
17.04 is not officially released yet so there might lie the issue. The only thing left is try removing the stable branch and installing the multiDistro branch of valet. It uses DnsMasq throught NetworkManager. See if it solves the problems you're having. |
cpriego
changed the title from
DNS issues after installing
to
Ubuntu 17.04 DNS issues after installing
Jan 18, 2017
|
To install the multiDistro branch that is working in the 16.10 version |
Meverhart
commented
Jan 18, 2017
|
Still a multitude of problems whenever dnsmasq is running. Upon stopping the dnsmasq service all problems cease. |
cpriego
added
wontfix
bug
labels
Jan 18, 2017
cpriego
self-assigned this
Jan 18, 2017
|
I was able to install Ubuntu 17.04 but clearly the problem is in the development packages. It seems Zesty is using systemd-resolv instead of dnsmasq and network manager no longer manages dns resolution (as opposed to all of the other distros out there right now). I'm afraid we'll just have to wait until Zesty is officially released. |
cpriego
closed this
Jan 18, 2017
javi-dev
commented
Feb 18, 2017
•
|
Hi, I'm on 16.10 and I'm noticing the same kind of problems. My /etc/NetworkManager/NetworkManager.conf is
I haven't done any tests or fixes myself yet, I'd probably make things worse. I'm just reporting the issue for now and wondering if this is expected, if it happens to anyone else, and if I should have installed LTS (it's a new Ubuntu installation). I'll provide info about my system if it helps. Thanks! Edit: After a bit of research, according to this, taken from this forum thread, 16.10 has the same issue for the same reason, and users are experiencing the same kind of DNS issues. So now I know. I hope this comment helps others know they are not alone. |
scottsweb
commented
Feb 23, 2017
|
I am also suffering from this issue on Ubuntu 16.10. With dnsmasq running I occasionally get DNS errors that require dnsmasq to be restarted. From the help documentation I spotted:
Which I will test and report back if it works. |
javi-dev
commented
Feb 24, 2017
|
I've been testing the fix on this stackoverflow answer for a couple of days now, and I'm happy to report stable dns and valet-linux running without problems. TL;DR: Just disable systemd-resolved by running |
scottsweb
commented
Feb 25, 2017
|
@javi-dev thanks for the info. Have disabled system-resolved too, so far all seems OK. Will report back if anything appears broken or the issue returns. |
cpriego
reopened this
Mar 5, 2017
|
@javi-dev @scottsweb I reopened the issue. If anyone can try this solution please report back. Specially with the latests versions of Ubuntu and Fedora. |
scottsweb
commented
Mar 6, 2017
•
|
@cpriego Thanks for opening the issue again. So far @javi-dev's solution of If I can help with testing anything then please let me know. Running Ubuntu 16.10. |
javi-dev
commented
Mar 6, 2017
•
|
No problems here either on the long term (still on 16.10). I even `valet share`d a WIP to ngrok, and it tunneled correctly. It would be nice if others can confirm it works, or if someone thinks disabling the service is a terrible idea for some reason.
I can't install another system on my machine right now, and I don't think a VirtualBox install would prove anything, sorry.
|
cpriego
added
help wanted
enhancement
and removed
wontfix
labels
Mar 7, 2017
huepf
commented
Apr 14, 2017
•
|
I installed the release version of 17.04 and also see issues with the DNS resolver. External sites are resolved fine but internal names can't be resolved. It doesn't matter if I try just the name or the FQDN. If I check
|
huepf
commented
Apr 14, 2017
|
After some digging it turned out to be an issue with DNSSEC. The current version of systemd-resolve seems to expect a working DNSSEC config of your DNS servers. Not signed replies are rejected. Had to add DNSSEC=off to resolved.conf |
EladKeyshawn
commented
Apr 14, 2017
|
@huepf Hey can you tell me which resolved.conf do you mean? |
EladKeyshawn
commented
Apr 14, 2017
•
|
since I opened this file now and it says you should not edit it by hand since its gonna be overwritten |
huepf
commented
Apr 14, 2017
|
It's in /etc/systemd/resolved.conf |
EladKeyshawn
commented
Apr 14, 2017
|
thanks |
EladKeyshawn
commented
Apr 14, 2017
|
and then do I need to restart something ? |
huepf
commented
Apr 15, 2017
|
Restart networking with |
bdoms
referenced this issue
in heroku/cli
Apr 17, 2017
Closed
Can't Run Any Remote CLI Commands After Upgrade to Ubuntu 17.04 #448
tomicakorac
commented
Apr 22, 2017
|
Guys, what's the current status of this issue? I was hesitant to upgrade Ubuntu because I didn't want to mess up my Valet configuration, but I did upgrade yesterday, and everything seems to be working just fine. I didn't apply any fix or work-around. Is anyone still experiencing any problems of this kind? My Valet version is 2.0.12. |
|
@tomicakorac hey, that is great news! Did you upgrade Ubuntu via PackageManager or did you do a clean reinstall? I'm asking this because I haven't changed a thing on valet's dns configuration. If it is working now it means the previous problems were on a misconfiguration on the Ubuntu side. |
tomicakorac
commented
Apr 22, 2017
|
@cpriego I've done |
|
@tomicakorac i think it might, but I'll do some testing in a VM |
huepf
commented
Apr 23, 2017
|
I can confirm that the issues are gone since Thursday when an updated version of systemd-resolved was released. Tested it on an updated and fresh installed system. The issue can be closed. |
cpriego
closed this
Apr 23, 2017
roasted-toast
referenced this issue
Apr 24, 2017
Closed
Google Chrome error ERR_ICANN_NAME_COLLISION on Ubuntu 17.04 #55
OndraZizka
commented
Jul 13, 2017
|
I have these issues now with the official 17.04 release. Even Try Ubuntu mode fails to connect to any server - DNSSEC validation failed. |
OndraZizka
commented
Jul 13, 2017
|
Ok I read about DNSSEC. What I don't get is why ubuntu servers can't be resolved either. Can someone post some explanation of what's going on, for those directed to here by google? |
pixelrebel
commented
Jul 31, 2017
|
Just got hit by this. Going from 16.04 to 17.04. Is this only an issue when upgrading? |
simonpo
commented
Jul 31, 2017
|
Re: "Is this only an issue when upgrading?" - no, I hit it on a brand new install of 17.04 on a machine that had never run Ubuntu before. After no success with the suggestions in this thread, I downloaded & installed 16.04 instead. |
pixelrebel
commented
Jul 31, 2017
|
@simonpo Is possible to workaround by disabling DNSSEC. It worked for me. Frustrating though that Canonical released this mess into the public without caring to fix it. |
cpriego
reopened this
Jul 31, 2017
|
@simonpo I'll be review this topic once again. As @pixelrebel mentioned, the DNSSEC and systemd-network are a complete mess and every time I fix the issue an update makes breaking changes. |
cpriego
added
distro bug
and removed
bug
enhancement
help wanted
labels
Jul 31, 2017
uldics
commented
Aug 4, 2017
•
|
2017.08.17. Found another solution, none from above helped me. |
datashaman
commented
Aug 18, 2017
•
|
Tried all the above, nothing worked, or if it worked, it resulted in DNS queries that take 15-20 seconds to resolve. This fixed everything, but now I can't use
Brand new installation of Ubuntu 17.04. No upgrade. EDIT: Still issues! Argh! Disabling DNSSEC to see if that works reliably. Perhaps I can re-add |
dakira
commented
Aug 19, 2017
|
Since the first fix to this issue I had no problems whatsoever. Maybe the contents of the relevant files on my system help: /etc/NetworkManager/NetworkManager.conf
/etc/NetworkManager/conf.d/valet
/etc/NetworkManager/dnsmasq.d/valet
/etc/systemd/resolved.conf
That's all the DNS relevant configuration I have to have it working on all my machines. |
dakira
commented
Aug 25, 2017
•
|
Triage:
Result
The relevant config files all appeared exactly as in my previous comment. Unless there's any new info, this ticket can be closed. @cpriego |
|
I've had very little free time. It is really helpful when you can test this in fres environment. Thanks @dakira I'm closing this once again as it is not a Valet issue. |
cpriego
closed this
Aug 26, 2017
|
I have a preview version available in the dnsmasq branch. I've tested it enough to make sure it breaks nothing in Ubuntu, Arch and Fedora. Could you guys help me by using it? I still need to update the tests. You can install the version with the following commands. Anyone is welcomed to try it.
|
cpriego
reopened this
Aug 29, 2017
dakira
commented
Aug 31, 2017
•
|
@cpriego I'm going through the changes right now. Any reason you're not using NetworkManager anymore and instead use dnsmasq directly? Update: Just so that no one else does this work in vain. I'll run the following tests:
|
dakira
commented
Aug 31, 2017
•
|
@cpriego This does not work at all for 17.04. Pinging *.dev return a DNS error (i.e. reply from 127.0.53.53). Can you give me a meta overview of what exactly you're trying to do in this branch? The commits are all a mixture of just cleaning up and completely changing the configuration. Again, testet on a live system. |
|
@dakira the reason of this branch existence is to fix a problem with NetworkManager and dns resolution when a computer boots off-line. Relying on NetworkManager in an off-line situation implied DnsMasq was not started, hence no access to any configured TLD (.dev for example). I faced that very same situation when depending on systemd-resolved. Indeed the branch is a mixture of cleanup and configuration change because I needed to push frequently in order to try the different solutions in different distros (Ubuntu 17.04, Fedora and Arch) making sure nothing broke. So far this proved to be effective in correcting the quirks with Ubuntu 17.04, that's why I asked you guys to test it. Here is a summary of the changes done:
I tested these changes in virtualboxtaking snapshots of fresh installations. With every modification I simply restored the snapshot and tested in a clean environment, I'm not sure it will work in a live image. Of course, after every update I ran |
dakira
commented
Aug 31, 2017
|
It should work in a live image. If it doesn't, something is wrong. Testing with virtualbox VMs is problematic because name resolution extends to the host, AFAIK. |
dakira
commented
Aug 31, 2017
|
I have a system where I completely disabled systemd-resolved in favor and dnsmasqd. This is all I have to do to achieve that:
|
|
Indeed, your solution works almost flawlessly, except it introduces an issue. Here are some of the different scenarios I tried and its issues.
In the end what I do is
The above commands work across-distro since reading nameservers from |
dakira
commented
Aug 31, 2017
|
I'm out of time to test right now, but I'll try to figure out why this doesn't work on vanilla Ubuntu 17.04. |
|
@dakira I found the reason the version was not working in the live images: the filesystem. In a live image you cannot run the |
dakira
commented
Aug 31, 2017
|
Might be, but that's a very hacky way anyway. I think I found a better way. Leave /etc/resolv.conf as it is (symlinked to /run/resolvconf/resolv.conf) and symlink /etc/resolvconf/resolv.conf.d/tail to /run/NetworkManager/resolv.conf. The resulting /etc/resolv.conf (generates on nm-restart or Two things I couldn't figure out: On every NetworkManager restart, systemd-resolved also started, even though it was stopped and disabled before. I also couldn't figure out where the 127.0.0.1 in the combined resolv.conf came from. |
|
@dakira I'm afraid that only works in Ubuntu for is the only one that has an /etc/resolvconf/resolv.conf.d/ directory. Not every distro has a resolvconf file. Rewriting the resolv.conf file and protecting it from write is the most effective and accepted solution in every document I read. |
dakira
commented
Sep 3, 2017
|
@cpriego the problem with that are mobile environments. You need some way of dynamically incorporating DNS changes by NM because different routers give you different DNS-Servers or search domains. That breaks if you just write-protect the resolv.conf file. I'm afraid there is no one-size-fits-all-distros solution for this. |
carlihland
commented
Sep 12, 2017
|
I've been franticly searching to find a solution to dns problems related to vpnc tunneling in Ubuntu Gnome 17.04 and been following this thread. I saw @cpriego 's post and tried on my live image. And it works! So I thought to myself, good, I can finally upgrade to 17.04. Guess what... After installation, I follow the same steps, and it doesn't work again. Why on earth would this work on the live image and not after installation? Does the package updates break this somehow? I know this is a bit off the topic but I getting desperate. I can't seem to find any info anywhere. Thanks a heap for any responses! |
dakira
commented
Sep 12, 2017
|
@carlihland can you compare your configuration with what I posted above? What version of valet are you using, the current release or the |
carlihland
commented
Sep 12, 2017
|
@dakira Sorry about cluttering this thread with off-topic. I am not using valet but I saw a clear relation between what I am experiencing with my vpnc tunnel and the problems described here concerning dns resolve. It actually looked like it would solve my problems as well. And it kinda did...on the live image. I'm already reverting to 16.04.3 as that release has no issues whatsoever in relation to dns, slow boot and such. Thanks! |
|
@carlihland indeed, the 17.04 is a mess, solutions work one day but not the next, all this because of updates and the unpredictable situations generated by system-resolved. The live image works because it has no updates applied. |
carlihland
commented
Sep 12, 2017
|
@cpriego Yup, that was my conclusion as well. 17.04 has some really nice improvements that I'm aching to start using, but DNS not resolving through my much needed tunnel is a deal-breaker for me. Anyway, again I'm sorry for the cluttering. Feel free to tidy up and delete the posts. :) |
cpriego
referenced this issue
Sep 21, 2017
Merged
Completely refactor the DNSMasq configuration #100
cpriego
closed this
in
#100
Sep 21, 2017
pedzed
commented
Nov 18, 2017
|
Same issue here.
|
dakira
commented
Nov 20, 2017
|
@pedzed Hey. This specific issue has been solved and closed. Can you describe your issue a bit more. I think opening a new one would be best. |
Meverhart commentedJan 17, 2017
Using Ubuntu 17.04. After installing Valet I seem to be having intermittent DNS issues including some common sites (facebook, etc...) not always resolving correctly. I believe this may be related to dnsmasq. Is this a known issue?