I'm facing an issue with DNS search domains not working and/or being ignored. I've been trying to troubleshooting/pinpoint the issue but unfortunately to no avail. I've googled fairly extensively and tried multiple options such as flushing the DNS cache, resetting my entire network setup, adding /etc/resolver/lan files etc, but nothing seems to work. I'm hoping one of you could point me in the right direction or speak out of experience on how she/he got this fixed. I am at a loss as the dhcp / dns configuration fully works out of the box on all of my other Linux/Windows machines, but my MBP is not liking the internal hostname resolution.
Problem statement: My MBP is getting an IP address assigned via DHCP, using a Pi-hole, with an unbound DNS resolver. I use an internal domain name "home.arpa" and that gets added as a DNS search domain, including the IP of my DNS server (192.168.1.4). Each device on my network has a hostname.
On my Linux and Windows machines i can perfectly ping the same device using both the FQDN (eg. ap12.home.arpa or kodi.home.arpa) and the hostname itself (eg. ap12 or kodi) as the search domain gets automatically added. However, on my MBP it simply does not work, as if the search domain is not even existing/being ignored. I can perfectly ping the FQDN but the hostname itself always fails. I have not provisioned my /private/etc/hosts file with these hostnames or FQDN as the DNS config should take care of that (and it does on my non-MacOS machines). I've tried even with fixed IP configuration (both static IP, DNS and DNS search domains) but no difference.
Apologies if this is not appreciated, but I've added some screenshots of both Windows, Linux and MacOS Big Sur with their config and ping results:
Windows 10:
Linux:
MacOS Big Sur:
From what my googling has revealed it seems the search domain is a problem that came up in the past for several users, but i didn't find any threads that made this a structural problem. It was most of the time linked to VPN's (split tunneling DNS) or missing/wrong search domains. It made me conclude that with a proper config, it was all considered to be working.
I silently hope some of you can guide/help me figure out what might be wrong or what i can do to alleviate this. Obviously i can hardcode the hostnames/FQDN's in the /private/etc/hosts file, but as I'm playing with alot of computers and VM's, i'd like to be able to rely on DNS resolution that is fully automated.
Thanks in advance for your potential interest/involvement!
Problem statement: My MBP is getting an IP address assigned via DHCP, using a Pi-hole, with an unbound DNS resolver. I use an internal domain name "home.arpa" and that gets added as a DNS search domain, including the IP of my DNS server (192.168.1.4). Each device on my network has a hostname.
On my Linux and Windows machines i can perfectly ping the same device using both the FQDN (eg. ap12.home.arpa or kodi.home.arpa) and the hostname itself (eg. ap12 or kodi) as the search domain gets automatically added. However, on my MBP it simply does not work, as if the search domain is not even existing/being ignored. I can perfectly ping the FQDN but the hostname itself always fails. I have not provisioned my /private/etc/hosts file with these hostnames or FQDN as the DNS config should take care of that (and it does on my non-MacOS machines). I've tried even with fixed IP configuration (both static IP, DNS and DNS search domains) but no difference.
Apologies if this is not appreciated, but I've added some screenshots of both Windows, Linux and MacOS Big Sur with their config and ping results:
Windows 10:
Linux:
MacOS Big Sur:
From what my googling has revealed it seems the search domain is a problem that came up in the past for several users, but i didn't find any threads that made this a structural problem. It was most of the time linked to VPN's (split tunneling DNS) or missing/wrong search domains. It made me conclude that with a proper config, it was all considered to be working.
I silently hope some of you can guide/help me figure out what might be wrong or what i can do to alleviate this. Obviously i can hardcode the hostnames/FQDN's in the /private/etc/hosts file, but as I'm playing with alot of computers and VM's, i'd like to be able to rely on DNS resolution that is fully automated.
Thanks in advance for your potential interest/involvement!