We should set the pref network.trr.exclude-etc-hosts = false. See #30753 (comment 2713753) for context.
network.trr.exclude-etc-hosts = false