So I have just looked in to this, and I can't reproduce it. I did the following:
$ vagrant --version Vagrant 1.8.1 $ vagrant init ubuntu/xenial64 <snip> $ vagrant up <snip> $ vagrant ssh -- sudo grep hosts /etc/nsswitch.conf hosts: files dns
(I've also done some interactive sudo'ing in there, and I haven't seen any issues)
I've done this with both the default hostname, and setting a hostname in the Vagrantfile.
If someone can provide full reproduction steps, I'd be more than happy to reopen this and address it, but as of now I can't find a bug to fix. :)
So I have just looked in to this, and I can't reproduce it. I did the following:
$ vagrant --version
Vagrant 1.8.1
$ vagrant init ubuntu/xenial64
<snip>
$ vagrant up
<snip>
$ vagrant ssh -- sudo grep hosts /etc/nsswitch.conf
hosts: files dns
(I've also done some interactive sudo'ing in there, and I haven't seen any issues)
I've done this with both the default hostname, and setting a hostname in the Vagrantfile.
If someone can provide full reproduction steps, I'd be more than happy to reopen this and address it, but as of now I can't find a bug to fix. :)