Networksetup -getdnsservers Wi-Fi reports "There aren't any DNS Servers set on Wi-Fi." If I manually set it via networksetup -setdnsservers Wi-Fi 192.168.1.22 the situation gets better but Safari's behavior still doesn't match Chrome's.
Mac os safari pro#
Other web browsers (Chrome & Firefox) on the same MacBook Pro do not display the ads that Safari displays.In the Network preferences pane, under DNS for the network interface, the Pihole's IP address is shown under DNS Servers.Looking up known advertising domains via nslookup properly returns the Pihole's IP address (indicating that an ad coming from there would be blocked).Running nslookup from the console indicates that the OS knows that the Pihole's IP is its DNS server.The Pihole device also functions as my DHCP server, and is configured to broadcast to clients that they should use its IP as the DNS server. The hackers are found using exploits that were almost impossible to detect, and not only that.
A never-seen-before malware that is dubbed as DazzleSpy has been found in macOS by the cybersecurity researchers at ESET security, leveraging a Safari web browser exploit. I've noticed recently (maybe since Mojave) that Safari seems to bypass this. Hackers Infect Apple’s macOS by Leveraging a Safari Web Browser Exploit. I use a Pihole on my network to provide local DNS service to block ads and various websites.