reactphp/dns

Consider supporting advanced DNS config (nsswitch,conf, hosts.conf, resolv.conf options and ENV variables etc.)

clue opened this issue · 1 comments

clue commented

We may want to look into supporting the settings from /etc/nsswitch.conf, /etc/hosts.conf, /etc/resolv.conf options and respective ENV variables such as RES_OPTIONS, RESOLV_HOST_CONF etc.

As of #75 we currently default to always checking the /etc/hosts before passing the request to the DNS resolver (which uses the correct nameserver entry from /etc/resolv.conf as of #29. Technically, the above files and ENV variables can be used to change the order and resolutions options, but this appears to be rarely used in practice. See also the respective man pages for more details.

My local system (Ubuntu-based) uses a local domain resolver which takes care of this, so now that #29 is in, this is not a high priority to me. I'm not working on this at the moment, but figured it's worth posting this here anyway. In case anybody feels like picking this up, PRs would be much appreciated +1

clue commented

Afaict these are more or less "advanced" features that are rarely used in practice, so I don't think it's worth the effort at the moment.

There are currently no immediate plans to build this from my end (no demand at the moment), but I suppose we would be happy to accept PRs if anybody sees a need for this feature +1

I'm closing this for now, please feel free to come back with more details if this persists and we can reopen this +1