I figured out how to make the /etc/network/interfaces method work. You manually edit /etc/network/interfaces, make sure there is only one dns-nameservers line with my internal dns ip in the list, then do a full reboot.
I think some of my issues with the /etc/resolvconf/resolv.conf.d/* files were that I forgot to add "nameserver" in front of the ip address... Once I remembered that key bit of info, adding the ip to /etc/resolvconf/resolv.conf.d/head did start working after a `systemctl restart resolvconf.service`. (Thanks Dennis Chang for prompting me to try again.) Oddly, using /etc/resolvconf/resolv.conf.d/tail, /etc/resolvconf/resolv.conf.d/base, and /etc/resolvconf/resolv.conf.d/original did not work. Even though they are listed as options in the man page. http://manpages.ubuntu.com/manpages/xenial/man8/resolvconf.8.html Hopefully using the 'head' file will work well enough for my testing, even if it has that "do not edit" message in it. Wait, now that I think about it, is that comment just in /etc/resolvconf/resolv.conf.d/head so that it appears at the top of /etc/resolv.conf? For reference, I added the following provision line to my vagrant vm config: xenial.vm.provision "shell", inline: "echo 'nameserver <internal ip>' >> /etc/resolvconf/resolv.conf.d/head; systemctl restart resolvconf.service" Thanks for the help! - David On Friday, August 23, 2019 at 3:40:02 AM UTC-7, Dennis Chang wrote: > > Hi Dave, > > Did you try, adding your dns server to /etc/resolvconf/resolv.conf.d/head > > and run the command "sudo resolvconf -u" > > as suggested in the link I sent? > > Does it not add your dns server to /etc/resolv.conf? > > Note: by following the instructions from the link, it appears you do not > need to restart networking. > It's worth a shot. > > > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/f359122a-104a-4aaf-a1cc-4188f1699831%40googlegroups.com.
