Questions tagged [dns]

Domain Name Service, a method of converting a textual doman name to an IP address

Filter by
Sorted by
Tagged with
2
votes
1answer
498 views

After using `networksetup -setdnsservers Wi-Fi “8.8.8.8” “8.8.4.4”` how do I clear them?

I'm looking to script a temporary DNS server change to override the DHCP response I get from the network. I've figured out I can use networksetup but once we're done testing. Before I push to ...
2
votes
1answer
321 views

Macs and local DNSMasq - clients keep forgetting results given by local DNS

I have a number of Mac OS X El Capitan and macOS Sierra clients whose DHCP configurations give them the local IP address of a DD-WRT router with DNSMasq setup within my LAN. This is so I can use ...
1
vote
1answer
901 views

Configure dnsmasq and use DHCP provided DNS together

Running MacOX Sierra on MacBook Pro, and setting up for local dev environment with nginx as the web server, but I have a problem. What I want to do Use dnsmasq as the local dns server that returns ...
0
votes
1answer
447 views

dns lookup specified in /etc/hosts and then dscacheutil != differ from dig, host, chrome

Via a long chain up of OS upgrades I'm running macOS Sierra 10.12.5. Setting entries in my /etc/hosts file is working only occasionally, mostly not. For example on a freshly rebooted machine. With ...
2
votes
1answer
6k views

What does the search domain in the network preferences do?

I'm setting up my DNS to go through my employers DNS server and have entered the addresses they provided. They say it's a dynamic DNSSEC provider. I kind of understand this. But I noticed that under ...
1
vote
1answer
590 views

Can ping Mac from machines on network but can't connect to any of its ports

So, I have been dealing with a rather peculiar issue: I have a Mac on my home network connected via Ethernet, which I use for web browsing, checking email, etc. I have no problems accessing both my ...
2
votes
1answer
2k views

Wipe all WiFi settings from MacBook

My old MacBook has come out of retirement after about two years turned off. It connected to my WiFi but the browsers complain it's insecure and might be connected to servers pretending to be the ones ...
0
votes
1answer
343 views

What is the difference between the “Local Network” and “Local Network and VPN” options in Server

I'm trying to understand what the difference is between these three options, and more to the point, I'm trying to determine which one is right for me. I'm aware that there is a difference in ...
5
votes
3answers
883 views

dnsmasq quits with “abort”

I installed dnsmasq using brew, and tried to run it as a service without success. This is how I installed it: brew install dnsmasq sudo brew services start dnsmasq system.log just shows 2 lines over ...
0
votes
0answers
242 views

editing DNS rules locally in macOS 10.12

When I develop web sites I like to have them run locally and responding to a more useful name than localhost/site. It used to be you could write rules in hosts pointing to 127.0.0.1. It would seem you ...
3
votes
1answer
1k views

/etc/hosts file not redirecting

There are several questions about this, but none seem to address what I'm seeing. After editing my /etc/hosts with vi with a test redirect, nothing is redirecting when I visit in a browser, including ...
1
vote
1answer
287 views

No DNS resolution if custom configured DNS server is not reachable - how to fallback to default DNS

How can I configure the DNS server in the network preferences with 8.8.8.8 (Google DNS) for my Mac but have it default to local network DNS servers in case Google's DNS server is not reachable from a ...
7
votes
3answers
2k views

DNS servers aren't specific to network?

On my Mac, I am trying to set my DNS servers so that they are 8.8.8.8 and 8.8.4.4 at my house, while at school they are the router default (they block google's public DNS) How can I set up my DNS ...
5
votes
0answers
49 views

Can't connect to any Apple related services via home network

I own an iPhone 5 and a 12-inch iPad Pro and I ran into this weird problem today where I was unable to reach any Apple related services via my home network. I was suddenly unable to connect to the App ...
2
votes
1answer
1k views

Can't connect to App Store on iPhone 6s when on Wi-Fi

I don't understand why this is happening now. This was never a problem. I have tried the following without success: Reset network settings. Make sure the date/time are correct — they are. Reset my ...
1
vote
0answers
446 views

How to run 'named' (bind) on Sierra?

Many OS versions ago, I ran a local copy of 'bind' for my in-home LAN. I noticed that it made a huge difference in the speed of name resolution. Performance of my local internet connections is ...
1
vote
0answers
388 views

Macbook Pro not loading insecure webpages/content in any browser

Forgive me if this is the wrong place to ask this, but I've run out of options. Within the past week or two my web browsers will not load anything unless it has 'https' in front of it. I am a web ...
2
votes
1answer
45 views

Are DNS and other services needed?

I inherited a Mac OS X 10.8 server that is now only used as a file server. Within the Server Apps settings it has File Sharing, Contacts, DNS, Mail, and Software Update services on. We have ...
2
votes
1answer
125 views

Offline DNS resolution on Sierra

I have configured dnsmasq to resolve all .dev domains to 127.0.0.1. This works great as long as my Mac is connected to the Internet (using Wi-Fi or even my iPhone in hotspot mode). As soon as I turn ...
3
votes
2answers
3k views

How to refuse DHCP Server to change my hostname?

I was not able to refuse changing my hostname by DHCP Server on Mac Book. None of these solutions below worked for me: How can I stop Mac OS X overriding my hostname when I receive a DHCP request on ...
5
votes
2answers
10k views

How do I flush the DNS cache on iOS?

Similar question to How do I flush the DNS cache on a OS X 10.6 machine?, but for iOS in general. Specifically, my use case is to flush the DNS cache for applications I downloaded from App Store. ...
1
vote
1answer
822 views

How to DNS resolve also subdomains to same host as the domain itself using wildcards?

We have a local DNS server running for development purposes. But it seems not to resolve subdomains to the same destination ip as the domain itself. As I figured out so far, we need to configure each ...
1
vote
1answer
158 views

pfctl config to allow VPN host names instead of IP addresses in OpenVPN connection

I would like to use VPN domain names instead of IP addresses to only allow some VPN servers on my Mac. I did everything here to set up pfctl to only allow some VPN servers to open access to some ...
0
votes
1answer
95 views

MacBook Bound to Active Directory Domain

My MacBook is bound to a Windows Active Directory domain. For the computer to keep contact with the domain controller, the DNS server needs to be set to the IP address of that controller. However, ...
1
vote
1answer
5k views

Mac OS X, 10.12.2, Command Line how to add Search Domains

I do this all the time with the GUI and it does what I am looking for. No Problem. System Preferences > Network > Select the LAN or Wi-Fi > Advanced > DNS > Search Domains and in that particular box ...
2
votes
1answer
196 views

Fixing error 73 AND Open Directory without Internet

I have been messing with an old PowerMac G4 running OSX 10.5 Leopard Server trying to get Open Directory running on a small network I set up for testing purposes. I can't find anything useful online ...
1
vote
1answer
2k views

How to make /private/etc/hosts available on macOS Sierra?

After searching related questions and answers, I find my issue still unsolved: editing /private/etc/hosts does not work on macOS Sierra. What in my /private/etc/hosts is the following two rules. 127....
1
vote
1answer
716 views

El Capitan: DNS cache won't flush

I'm trying to get my El Capitan's (10.11.6) DNS cache to flush, to try and solve slow localhost domain name resolution, but nothing I do has any effect. My computer name, hostname and hard disk names ...
9
votes
1answer
8k views

dnsmasq not working on Mac OS Sierra

I'm running dnsmasq on a 2016 MBP running Mac OS Sierra (10.12.1) but I'm unable to ping any .dev addresses despite having what I believe is the proper config. Running dig does return sane output. /...
6
votes
3answers
7k views

Terminal/Safari Cannot Resolve Host But Chrome Can Connect

I have MacBook Pro (Retina, 13-inch, Early 2015) with OS X 10.11.5. Internet connection works only for Chrome. Safari and several terminal apps cannot connect to internet due to resolve host failure....
6
votes
2answers
13k views

How to force MacOS to regenerate /etc/resolv.conf file?

Apple states clearly that the /etc/resolv.conf file is managed by Mac OS so it will be regenerated. The problem is that it seems that when I join the OpenVPN this does not happen and as a result tools ...
0
votes
2answers
145 views

DNS - Cannot connect to the internet

I think I have some sort of dns/proxy issues with my wifi settings. Many apps cannot connect to the internet: Firefox, Team viewer, Steam (works after 2 minutes). Chrome does connect but "Establishing ...
2
votes
0answers
406 views

Ping `hostname` stuck about 5 seconds on macOS Sierra

I will describe this problem details in shell interaction records: $ host `hostname` Host myhost.local not found: 3(NXDOMAIN) $ cat /etc/hosts | grep 127.0.0.1 127.0.0.1 localhost myhost.local $ ...
3
votes
1answer
1k views

Internet connection very slow only in my house and only with my Mac

I bought a brand new MacBook Pro 13" 2015 (8GB RAM, i5, 128 SSD) 7 months ago. The thing is, my Mac works and I love it, but a couple of months ago, without doing anything, loading web pages even with ...
0
votes
1answer
184 views

OSX El Capitan, DNS issue

Yesterday everything worked fine. But tonight, I'm unable to access particularly a few particular websites on all the imacs, mbp and even iphones at home. Weirdly enough, a quick 4G access via my ...
2
votes
1answer
404 views

Disable DNS assignment with Airport Extreme IPv6 tunnel

I've got an IPv6 tunnel from Hurricane Electric, configured into one of my Apple Airport Extremes (which is otherwise setup in bridge mode). That's all fine, except that in the IPv6 Route ...
1
vote
1answer
94 views

What should I be using instead of `dig`?

I stopped using nslookup a decade ago because dig superseded it. Now I'm creating custom files in /etc/resolver/ and finding that everything works... except dig (and nslookup). Actually, I'd prefer ...
1
vote
1answer
1k views

Ping cannot resolve .io domains yet nslookup can

macOS 10.12.1 (16B2555) on an early 2015 Macbook Pro. I can't resolve any .io domains on this machine. Other people on the same network can. This happens here at the office, and at home. I've ...
4
votes
2answers
833 views

Why is domain name resolution slow in Sierra

I have a Linux web server running in VirtualBox and after upgrading to Sierra I found that my sites on the web server are extremely slow to load. It takes minutes. I thought it had to do with ...
0
votes
1answer
56 views

MacBook DNS works behind some routers, doesn't behind others

I've found WiFi routers where I cannot open domains, but ping IP addresses just fine. This means I can't browse websites. This happens only on my Macbook, and these connections work fine for Windows ...
3
votes
1answer
904 views

Make mDNSResponder use local DNS server?

I want to use dnsmasq when my Mac (Sierra) is not connected to a wifi network. Configuring DNS servers in the Advanced Network Preferences dialogue box works fine for dig and nslookup, and I can see ...
1
vote
2answers
330 views

Cannot access specific website (MBP - OS X 10.10.5)

I’m having problems connecting to a certain website. It’s random whether the site loads but recently it’s been getting worse. What happens is that I turn my router and computer off at night, then ...
3
votes
2answers
587 views

How can I set up DNS for Bonjour and AirPrint to advertise printers across subnets

Several printers do not stay connected to clients--even though everything has static ip addresses--and they are not searchable across networks i.e. they do not appear with Bonjour. Ideally I would ...
1
vote
0answers
806 views

Unable to connect to localhost on my development machine

I'm configuring a new Web development machine using the very complete and well-written guide published by Echo Software but I cannot connect to localhost after following/checking every step. My only ...
3
votes
0answers
1k views

Chrome refuses to flush / refresh DNS—why?

On OSX El Capitan, I have an issue developing a Wordpress site hosted locally by MAMP. When I visit the root hostname specified in MAMP, Chrome redirects me to an old hostname I previously used for ...
9
votes
3answers
10k views

DNS Resolution Fails for ping and curl, but not dig

I'm running DNSMasq as a local DNS server, so I can resolve *.local.pcfdev.io (as discussed here Using PCF Dev Offline with Mac OS X). Everything worked when I first set things up. A couple of days ...
3
votes
2answers
14k views

What is the equivalent of ipconfig/displaydns (and flushdns) in OS X?

I need to find how to display my DNS cache on the mac. I have tried multi Google searches but failed to come up with a good solution. The best I found was how to remove the cache with the command ...
1
vote
1answer
236 views

Can't ping local devices by network name after DNS change

Today I was changing the Wifi network adapter settings to give my MacBook Pro a static IP address on the local network (disabling DHCP), and for this I had to add the DNS servers that I looked up in ...
1
vote
1answer
1k views

Force system to use local hosts file before DNS (OS X El Capitan)

I want to find a way to force my system to resolve through the local hosts file on my system before it makes a DNS query. There's a reason for this, and here's my context: I live in China. I need a ...
5
votes
2answers
7k views

Cannot ping localhost: “unknown host” on Mac OS X El Captain

I am trying to resolve localhost which right now is "not found" if I ping localhost - I am getting ping: cannot resolve localhost: Unknown host I have made sure that the /etc/hosts file has the ...