Selected dyndns.com in the installation process and followed the prompts. Did not need to manually enter anything.
Enable Dynamic DNS for your domain
Login to your Namecheap control panel and enable dynamic DNS for your domain.
You’ll get a really long password string to use. Save that for now as you’ll need it later on.
$ sudo nano /etc/ddclient.conf
# namecheap.com example configuration
# the login is the domain name and password is the hash you saved in the prior step called ‘Dynamic DNS Password’.
# Configuration file for ddclient generated by debconf
use=web, web=dynamicdns.park-your-domain.com/getip, web-skip='IP Address'
iptables is a unix firewall. The name is not self descriptive. Below are some notes I gathered.
Allow node.js port 3000 to be accessed outside the machine. Vagrant (the inside) and windows (the outside). The 1st one is to add a rule to the beginning and the 2nd is to append at the end of all the rules. Ultimately they are the same. Be careful with the second one because rules before will take preference. $ sudo iptables -I INPUT -p tcp --dport 3000 -j ACCEPT
$ sudo iptables -A INPUT -p tcp --dport 3000 -j ACCEPT
More ? – in windows command line running ipconfig /all will show what dns server you’re running
You will need to edit the ‘/etc/resolv.conf’ with the nameserver of your choice. You can manually edit it (without restarting anything) and have it work however it you restart you computer it will be overwritten by resolvconf. To avoid the overwriting you need to edit ‘/etc/resolvconf/resolv.conf.d/head’ instead. Now if you cannot find that file you will need to update ‘resolvconf’ by running ‘$ apt-get install resolvconf’ (had to do it for raspberry pi). source
To force resolvconf to update /etc/resolv.conf run
$ sudo resolvconf -u
Another ‘not a good idea’ option is to use ‘$ chattr +i’ to lock down ‘resolv.conf’ which seems hacky