I have to do "sudo killall -HUP mDNSResponder" dozens of times daily
Hi
Our development server is structured so that websites are accessed through siteprefix.dev.domain.com:port and I am accessing it this way for years now. Last few weeks whenever I wanted to access this domain.com wither as a direct domain access through browser, or FTP access throufgh Panic Next or any other means of accessing it acts as domain resolution is impossible - firefox says "Hmm. We’re having trouble finding that site. We can’t connect to the server " and all other act similar. When I go to terminal and do sudo killall -HUP mDNSResponder and provide pass it usually works, sometimes I need to do it 2-5 times in a row before it catches up but then this solution fails within minutes and I have to do it again. It is immensely annoying - I have no idea how to even diagnose it so the solution is permament.
I managed a workaround in FTP/Panic software by providing direct IP address instead of domain.com and it works flawlessly
Is there a way I can so the same but system-wide and so that mac knows that this domain.com is a specific IP? I suppose it would require separate IP dor the dev.domain.com as it is a different physical server but generally is there a way to tell mac that domain.com or subdomain.domain.com is a certain static IP address?
Thanks!
iMac Line (2012 and Later)