remove shitty solaris logic

- it assumes hostname is short and it may not be (e.g. smartos)
- it uses the NIS domainname as the DNS domainname which is both
  unlikely to be used these days and not guaranteed to match anyway
- its unlikely this worked correctly for just about anyone
- in the event that the domainanme was blank you got a trailing dot
  which screwed everything up.