Thursday, 27 March 2014

Mac OS X clients getting wrong DNS names

Hi, so we've had macs here for a long time. We eventually got them working with the Active Directory, and with this I thought would also come the DNS or DDNS names i.e. (for local network stuff). I must iterate here that this is just for internal name lookups, nothing external here, no internet related stuff, intranet ONLY.

So, it worked on most of them. After adding them to active directory, they got their names: '', but for about 1 in 5 macs (we have about 150) it'll give it the DNS name of some random machine in college! So instead of it saying '' it'll say '' !!!!!

I've put up with it for about 7 years, just used the mac sharing name instead, and remembering IP addresses. But we're trying to integrate the macs further into the network, and this is perhaps one of the last hurdles.

Anyway, I did some searching and found this quite frustrating forum. Seems lots of people not communicating very well. At the end, someone suggested this solution. I've yet to try it but if anyone has any comments?

So, I've now found a command which changes: Computer Name, Host Name, Local Host Name:
scutil --get ComputerName
scutil --get HostName
scutil --get LocalHostName

The Computer Name and Local Host Name is the one set up through System Preferences > Sharing, at the top

scutil --get ComputerName|scutil --set HostName

No comments:

Post a Comment