Tagged with dns

Leon Chung

What's my name?

At my current job, we name our computers the same name as their DNS names. I needed a way to set my Macs' HostName, LocalHostName, and ComputerName the same as the DNS name so that puppet is happy, ARD is happy, and other network things. I had been trying to name our computers properly via a script and it worked sometimes. I had great help from frogor and a lot of these came from his ...

ip address hostname dns terminal bash ipconfig ifconfig awk