The way Adaway works is similar to DNS blocking, it modifies the system hosts file which is like a local DNS. I would divide ad blockers into name resolution based (Pihole, Adguard, Adaway) and client side filters (Ublock origin etc).
Well DNS based blocking has its problems mainly devices bypassing your network defined DNS with some encrypted DNS(DoT,DoH) or using hardcoded custom DNS servers.
The way Adaway works is similar to DNS blocking, it modifies the system hosts file which is like a local DNS. I would divide ad blockers into name resolution based (Pihole, Adguard, Adaway) and client side filters (Ublock origin etc).