In any case glibc uses NSS, so what glibc does depends on the configuration. It may well just forward the request to systemd-resolved.