I've spent some time trying to reproduce this on 10.13 but have not been
able.
I have disabled all the services as suggested (including some additional)
such that the dns-sd command produces no output "records" and also by
disabling unicast DNS access.
I wonder if there has been a change in 10.1
Oh, another element is that to see the behavior, your local hostname has to
not have an entry in /etc/hosts. Adding it is one of the workarounds. My
/etc/hosts has a localhost entry that does not include the name my machine
ends up with after boot.
I'm also on 10.13, so I don't think that's the is