dnsmasq doesn't resolve 127.0.0.1
See original GitHub issueI followed the instructions to set up dnsmasq. As soon as I reach this step, I lose access to the internet:
sudo networksetup -setdnsservers "Wi-Fi" 127.0.0.1
I tried clearing my DNS cache but that did not work. I’m running OS X El Capitan.
Issue Analytics
- State:
- Created 8 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
dnsmasq not working to point .local addresses to 127.0.0.1
local seem to be some kind of reserved keyword, at least on Ubuntu: address=/local/127.0.0.1 -- doesn't work. address=/loc/127.0.0.1 -- works.
Read more >Dnsmasq resolves local hostname to 127.0.0.1 all over the net
dnsmasq can resolve its own hostname by disabling reading from /etc/hosts and configuring another config file for reading the hostnames including itself.
Read more >Trying to resolve .local to 127.0.0.1 using dnsmasq and ...
I think NetworkManager is behaving as expected. NetworkManager is presumably starting a DNSmasq instance and setting your machine to use ...
Read more >My computer resolves itself to 127.0.0.1 instead of its outer ip
I recently installed dnsmasq in two of my machines. The service works all right but the trouble is that when consulted they return...
Read more >[Dnsmasq-discuss] Problem with server=/local/127.0.0.1
In my dnsmasq.conf "server=/local/127.0.0.1" doesn't seem to work. > > > At least, it doesn't work how I thought it was supposed to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The problem for me was this line in the configuration file:
There is no such file.
I commented it out and put the trusted-anchor setting instead (see README).
Note: trust anchor: https://data.iana.org/root-anchors/root-anchors.xml
Instructions:
Note: requires sudo.
It copies the file, but check the permissions, execute the following command to change it:
sudo chmod 0644 /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
You may want to update the documentation. Thanks for maintaining the page.
Hope this helps.
I reinstalled dnsmasq and followed the steps again. It worked fine this time. I don’t know why that is! Thank you for your help!