Xsan 2 will use the hostname to connect to a client, normally this is set correctly but due to some caching issues I had to manually set this via ARD the other day. Enjoy the quick code:
scutil --set HostName "$(host $(ifconfig en0 |
awk '/inet /{ print $2;exit}') |
awk '{print $NF;exit}' |
sed 's/.$//g')"
If would you like to contact me with comments or inaccuracies about this article, feel free
![Add '[ DNS ] Setting hostnames based on PTR' to Del.icio.us Add '[ DNS ] Setting hostnames based on PTR' to Del.icio.us](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png)
![Add '[ DNS ] Setting hostnames based on PTR' to digg Add '[ DNS ] Setting hostnames based on PTR' to digg](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/digg.png)
![Add '[ DNS ] Setting hostnames based on PTR' to Feed Me Links Add '[ DNS ] Setting hostnames based on PTR' to Feed Me Links](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/feedmelinks.png)
![Add '[ DNS ] Setting hostnames based on PTR' to Technorati Add '[ DNS ] Setting hostnames based on PTR' to Technorati](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png)
![Add '[ DNS ] Setting hostnames based on PTR' to Yahoo My Web Add '[ DNS ] Setting hostnames based on PTR' to Yahoo My Web](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/yahoo_myweb.png)
![Add '[ DNS ] Setting hostnames based on PTR' to Newsvine Add '[ DNS ] Setting hostnames based on PTR' to Newsvine](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/newsvine.png)
![Add '[ DNS ] Setting hostnames based on PTR' to Socializer Add '[ DNS ] Setting hostnames based on PTR' to Socializer](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/socializer.png)
![Add '[ DNS ] Setting hostnames based on PTR' to Stumble Upon Add '[ DNS ] Setting hostnames based on PTR' to Stumble Upon](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png)
![Add '[ DNS ] Setting hostnames based on PTR' to Google Bookmarks Add '[ DNS ] Setting hostnames based on PTR' to Google Bookmarks](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/google.png)
![Add '[ DNS ] Setting hostnames based on PTR' to OKnotizie Add '[ DNS ] Setting hostnames based on PTR' to OKnotizie](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/oknotizie.gif)
![Add '[ DNS ] Setting hostnames based on PTR' to Propeller Add '[ DNS ] Setting hostnames based on PTR' to Propeller](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/propeller.png)
![Add '[ DNS ] Setting hostnames based on PTR' to Bookmark.it Add '[ DNS ] Setting hostnames based on PTR' to Bookmark.it](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/bookmark.png)
![Add '[ DNS ] Setting hostnames based on PTR' to Ask Add '[ DNS ] Setting hostnames based on PTR' to Ask](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/ask.png)
![Add '[ DNS ] Setting hostnames based on PTR' to Live-MSN Add '[ DNS ] Setting hostnames based on PTR' to Live-MSN](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/live.png)
![Add '[ DNS ] Setting hostnames based on PTR' to SlashDot Add '[ DNS ] Setting hostnames based on PTR' to SlashDot](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/slashdot.png)
![Add '[ DNS ] Setting hostnames based on PTR' to FaceBook Add '[ DNS ] Setting hostnames based on PTR' to FaceBook](http://techjournal.318.com/wp-content/plugins/social-bookmarking-reloaded/facebook.png)