Questions tagged [dns]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
18 views

How to disable DNS resolution when using a HTTP proxy

I'm running behind a corporate firewall and http proxy. The DNS resolves internal names but does not resolve external names. The proxy does allow connecting to external sites and when using this with ...
0
votes
1answer
18 views

What is bound at port 53 of localhost and how to stop that service?

I want to run my own bind dns forwarder but in order to bind it to port 53 of my machine I first need to stop what is running there. It seems that a service called "domain" is running there from what ...
0
votes
1answer
114 views

How to flush the DNS cache of Safari on macOS Mojave without restarting the system?

I've experimenting with configuring dnsmasq on macOS for Apache vhosts instead of creating entries in /etc/resolver/<domain> for each domain. In my case, I configured dnsmasq to resolve .dev to ...
7
votes
4answers
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....
3
votes
2answers
321 views

macOS keeps reverting to static DNS IP addresses

I have a strange issue that only started occurring recently (within the last 2 public OS update releases). The DNS IP addresses for all interfaces (at least, the WiFi and Ethernet interfaces) are ...
0
votes
1answer
22 views

Using scutil to set DNS for specific domains

I'm trying to resolve only example1.com and example2.com using a custom DNS server. I've read that scutil could come in handy, but after doing the following, the system-wide DNS is still used: sudo ...
0
votes
1answer
46 views

DNS resolution works for nslookup but fails in browser while using openconnect

Trying to use openconnect to connect to Cisco Anyconnect VPN. I just did brew install openconnect and use it from cmd line like this: sudo openconnect --authgroup=VPN-SSL-GROUP -u FIRST_LAST@...
6
votes
1answer
89 views

Terminal Displays My Roommate's Computer

I don't know how long ago this happened, but today I realized that when I open up terminal it no longer says Matthew-MacBook:~matthew$ as it used to. Instead, it appears to have synched up with my ...
1
vote
1answer
74 views

How & why do “0.0.0.0” connections get a response?

I have a lot of bad guys in /etc/hosts pointing to 0.0.0.0 If I use host to check the domain name, I get an actual IP address instead of 0.0.0.0 What I expected the resolver to give me is the same ...
1
vote
1answer
64 views

How to flush the DNS cache on macOS?

I've read that sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache should flush the DNS cache on OSX (macOS Mojave). However, this command kills processes ...
1
vote
0answers
37 views

How to set system-wide DNS server settings on macOS, not for each network?

I'd like to set one DNS server IP that my Mac should always use, but currently I have to repeat the same process every time I connect to a new network: System Preferences > Network > Wi-Fi > Advanced ...
2
votes
0answers
28 views

DNS ignored in VPN settings

I have an IKEv2 VPN set up in my network preferences. It works fine, I can access any desired computer in the remote network by the IP. Also, I added our DNS server to the VPN connection though ...
4
votes
1answer
135 views

How to use Secure DNS on MacOS?

My Problem I am using Google 8.8.8.8 DNS, and would like to use its Secure transports for DNS feature to make sure nobody is messing with the communication channel between Google and my Mac. What ...
1
vote
0answers
46 views

DNS on VPN does not work

I have an Azure Point-to-Site VPN over IKEv2 configured and it works well. The problem is with DNS. DNS adresses are filled in Advanced tab of the VPN connection but it does not resolve anything. ...
0
votes
1answer
47 views

Is it true that iOS devices use a hard coded time.apple.com dns for an ntp server?

I read that the only way to point an IOS device at your own NTP server is to change your dns sever’s record for time.apple.com to point at your NTP server so that when the iOS device requests the time ...
4
votes
2answers
86 views

The Apple TV doesn't support native VPN configuration - is there another way to use VPN?

TL;DR: Apple doesn't allow for native VPN configuration on Apple TVs, is there a reliable way to use a VPN service with my Apple TV? As someone who lives abroad, a VPN can be a real life saver when ...
0
votes
0answers
27 views

Mac ping seems to cache DNS, how to stop this behavior

I have a split DNS situation happening. I have updated the DNS record on both local and public DNS servers. nslookup recognizes that the A record has been updated: user@MacBook-Pro:~ $ nslookup ...
1
vote
0answers
41 views

Connected to Ethernet but no Internet access

I am having a very frustrating problem. My 2009 iMac is connected to our network by Ethernet, however it cannot access the Internet. All my other devices work fine, and local adresses (192.168.0.1 ...
14
votes
5answers
10k views

/etc/hosts gets over written

What is the correct way of editing /etc/hosts? I want to add some IP addresses and host names to it. It works for a while (a few hours) and then it gets reverted back to the original version. Is there ...
1
vote
0answers
100 views

iPhone using cellular data even if disabled

I'm currently abroad and my carrier is charging absurd fees for data plan. I decided to turn off completely cellular data and rely only on WiFi but my iPhone is still using few KBs of data every day. ...
0
votes
0answers
21 views

How to make Chrome look for local DNS

MacOS Version: 10.14.5 Chrome Version: 75.0.3770.100 I have entered an entry in my /etc/hosts like below ## # Custom hosts ## 127.0.0.1 jupyter.dev ::1 jupyter.dev My traceroute ...
100
votes
22answers
207k views

DNS not resolving on Mac OS X

Some of my coworkers are having troubles on their Macs - DNS resolution does not work under Mac OS X. They're running Snow Leopard 10.6.8. They can use DNS in a Windows 7 virtual machine (VMware ...
2
votes
1answer
78 views

How can I lookup the IP address of a Bonjour host?

Normally, if I want to point to a Bonjour-capable host on my local network, I can use its local network hostname, hostname.local, as in: $ ssh pi@raspberrypi.local Unfortunately, this doesn't work ...
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 ...
2
votes
0answers
227 views

Homebrew dnsmasq “Service exited with abnormal code: 2” (Mac OS X Sierra 10.12.6)

Workaround (update) A quick workaround is to stop the job through brew services stop dnsmasq. Then you should first unload the launchd configuration file and then reload it. $ sudo launchctl unload -...
1
vote
1answer
41 views

hosts file: does it pass the domain name? I'm always redirected to the main site configured on the host

My NEW server IP address is 123.456.789.123. Pointing my browser to 123.456.789.123 (http://123.456.789.123) the server serves me site alpha. Now, on the same NEW server I've configured a second ...
2
votes
0answers
13 views

MacBook Pro on company network loses Internet access after 10 minutes, but still has internal network access

I have a Mac user that after 10 minutes loses Internet access. The issue started yesterday. I have recreated the location with the DNS addresses in my troubleshooting efforts. When I restart after ...
1
vote
0answers
28 views

MacOS prefer /etc/hosts over DNS

My Mac is running dual stack IPv4/IPv6 which works fine. In my /etc/hosts I have added a IPv4 pointer to my development VM like so: website.test 10.10.10.35 This works fine. But I noticed that some ...
8
votes
3answers
3k 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 ...
1
vote
1answer
18 views

ssh to non-existent .local name never times out

If I try to connect to a non-existent .local hostname using most utilities, including ping and telnet, it times out after 5 seconds: % time telnet host.example.local host.example.local: nodename nor ...
2
votes
1answer
132 views

Google DNS doesn't work

I have trouble using Google DNS under my 2017 MacBook Pro running macOS Mojave.. I want to point in advance that: I don't have access to the router settings. I'm using kind of host network that my ...
1
vote
1answer
47 views

/etc/hosts ignores some entries

Giving the command below shows my /etc/hosts all similarly formatted. Trying Safari to go to facebook.com indeed gives the URL: safari-resource:/ErrorPage.html but for some or many of the other ...
10
votes
1answer
6k views

How to find all devices (IP Address, Hostname, MAC Address) on local network?

I've read almost every thread related to this, yet no one has quite made it easy to access a table like the following. IP Address Hostname MAC Address 192.168.1.10 | myAppleTV | 02:...
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 ...
0
votes
1answer
31 views

iPhone having problems connecting to services

I have an iPhone 7+ (NN4P2ZD/A) that has been having weird issues with connections which I’m attributing to DNS resolution problems. They only occur on home WiFi network and they only occur on this ...
38
votes
9answers
73k views

OS X 10.10.1 /etc/hosts & /private/etc/hosts file is being ignored and not resolving

Like the title says, running os x 10.10.1. if i have an entry in my hosts file and do a dig or nslookup it still shows a different IP than what is in my hosts file even after trying to flush various ...
14
votes
2answers
12k views

discoveryutil: command not found

After connecting VPN, I often have to flush DNS to get my private hosts to be found. I would do this sudo discoveryutil mdnsflushcache; sudo discoveryutil udnsflushcaches Now, after upgrading to ...
0
votes
2answers
49 views

Why my machine, automatically goes to this IP/domains

Why my machine, automatically goes to this IP/domains. I have installed VM with windows 7 and I have wordpress site with xammp server and that is all. Is they are safe domains or not? Because I see ...
0
votes
1answer
1k views

Safari can't connect to localhost

I'm trying to use Focus, an app that redirects blocked websites through localhost. However, while this works properly with Chrome and Firefox, Safari gives me an error message as in the attached image....
2
votes
1answer
719 views

How do I configure DNS now that OS X Server doesn't support it?

I was using OS X Server to run DNS for my local network. As many know, the Mojave version of Server dropped a lot of the services that were there, one of which was DNS. Unfortunately I didn't read ...
0
votes
1answer
91 views

How to configure resolv.conf options with scutil on MacOS?

I would like to configure the following: options rotate timeout:1 retries:1 What is the way to achieve that with scutil --dns. I can't find it anywhere in the documentation. $ for i in {1..100}; ...
3
votes
4answers
3k views

nslookup & dig fail; ping, traceroute, and scutil -r work

I'm running on 10.8.2. All of a sudden, traditional nameserver lookups are failing on my machine: $ nslookup www.att.com ;; connection timed out; no servers could be reached $ dig www.att.com ; &...
0
votes
0answers
87 views

Bypass DNS resolver/cache in Mac?

I'm hitting an error where after changing a DNS name, dig reports that a name resolves to the correct IP but curl says the name doesn't exist. Restarting the machine clears the problem, clearing the ...
0
votes
0answers
38 views

At one particular coffee shop, mac only connects to google and nothing else

I have a 2015 Macbook Pro running High Sierra. At one particular coffee shop, my mac only connects to google, facebook and youtube and no other websites. I looked at a bunch of forums and based on ...
1
vote
0answers
341 views

macos mojave -> “software update” -> “A server with the specified hostname could not be found”

How do I get rid of this message and in fact manage to update the machine? I can browse internal and external websites fine, name resolution works fine, a packet capture tcpdump -i en7 port 53 and ...
3
votes
2answers
591 views

Alternate DNS resolution for Safari on macOS?

I use a Pihole on my network to provide local DNS service to block ads and various websites. I've noticed recently (maybe since Mojave) that Safari seems to bypass this. The Pihole device also ...
0
votes
0answers
46 views

Google Chrome and nslookup: works. Safari and ping: do not work

So I'm on a hotel WiFi that has been working fine for several days. Suddenly, I'm not able to use many programs on the internet. Safari says "Can't find server". Ping says "Can't resolve: Unknown ...
0
votes
0answers
1k views

How to prevent DNS caching on iOS

Does anyone know how to prevent DNS caching on iOS? My DNS cache keeps getting fouled up and it causes all sorts of issues that affect: Population of the bonjour pane in the VNC app Detection of ...
4
votes
1answer
901 views

How do I really (dig) flush the DNS cache on OS X 10.9?

I'm on OS X 10.9, according to support.apple.com I can flush the cache with sudo killall -HUP mDNSResponder Unfortunately this does not really refresh my DNS cache at all, also not like this: ...
0
votes
0answers
10 views

Mix DNS from DHCP with a statically defined one

I'd like to configure my DNS records to priorities a statically defined DNS server (e.g. 8.8.8.8) and fallback onto DNS servers retrieved from DHCP. I'd like the DHCP DNS servers only to be used, if ...