Link to home
Start Free TrialLog in
Avatar of triphen
triphen

asked on

iMac not resolving DNS

Hi guys,

I have a small network with 5 PCs and 1 iMac. PCs are Win7 Pro and iMac is OSx 10.12.4 (sierra).

All 6 computers have the same DNS address. 10.0.1.25 (statically assigned) and all the computers are hardwired and on the same network.

From the PCs I can ping and resolve activedirectorydomain.local to 10.0.1.25 but from the Mac I can't.
I get this error ping: cannot resolve: activedirectorydomain.local: Unknown Host.

From the Mac and from the PCs I can ping 10.0.1.25. So I think this is a DNS issue. It's almost like the Mac is not accepting my statically assigned DNS address for some reason.

Any thoughts?
Avatar of serialband
serialband
Flag of Ukraine image

Maybe flush your cached DNS cache table?


Mac OS Versions
   Sierra (10.12.0)
   El Capitan (10.11.0)
   Yosemite (10.10.4)
   Mavericks (10.9)
   Mountain Lion (10.8)
   Lion (10.7)
sudo killall -HUP mDNSResponder

OSX Yosemite (10.10.0 – 10.10.3)
sudo discoveryutil mdnsflushcache

OSX
   Leopard (10.5)
   Snow Leopard (10.6)
sudo dscacheutil -flushcache
Avatar of triphen
triphen

ASKER

Thanks for the reply.

I ran the command: sudo killall -HUP mDNSResponder, it asked me for password and I entered it. It didn't give me any confirmation or status, just terminal prompt, after I tried to ping the name again. Still no luck resolving the domain.local...
ASKER CERTIFIED SOLUTION
Avatar of Eoin OSullivan
Eoin OSullivan
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of triphen

ASKER

Thanks for your comment!

Nothing worked :( I ended up editing the hosts file! I still don't know what is causing this but at this point, I am so fed I DONT EVEN CARE!
That's actually not the correct way to fix it as that will cause problems when you move to other environments.  What do you use for DHCP?  You need to set the DHCP server to correctly dole out the DNS information to all your DHCP clients.
Avatar of triphen

ASKER

Yes I 100% understand that however what can I do? I statically assigned a DNS server and Mac OS is completely ignoring that assignment.

I am only getting IP, subnet, and gateway from DHCP, DNS is assigned statically.
DHCP servers normally set DNS for the DHCP clients as well.  You must have something set incorrectly on your DHCP server, or you somehow block the DNS port 53.