Why does `hostname` return "dserodio" and not "dserodio.local"?
I think you need this:
    sudo scutil –-set HostName dserodio.local

The command that you are running is temporary.
Source
http://osxdaily.com/2010/09/06/change-your-mac-hostname-via-terminal/