Some binaries (mostly *nix ones) rely on /etc/resolv.conf, some other rely on the DNS settings that can only be configured via the GUI or scutil.
On top of that, but this is a totally personal opinion, the DNS stack on macOS is just hell to be configured properly.
Some binaries (mostly *nix ones) rely on /etc/resolv.conf, some other rely on the DNS settings that can only be configured via the GUI or scutil.
On top of that, but this is a totally personal opinion, the DNS stack on macOS is just hell to be configured properly.