In Nginx the allow directive (from module ngx_http_access_module) does not seem to work with domains. It just seems to work with IP.
Why would that be useful, you ask? Let's say you want your family to access your service without being asked for a password.
Family members could use dynamic DNS to map their IP to a certain domain (say: name.hopto.org from a service like No-IP, for example). In that case, one could code it the following way:
allow 192.168.1.70; #For an internal IP, for example.
allow name.hopto.org; #For a known external domain, for example.
deny all;
However, since this does not work, what other elegant alternatives are there? Don't want to end up resorting to cron jobs to update the IPs...
Why doesn't Nginx resolve the domain to an IP address? Is there a module that can do that?