Pihole does ad blocking by blocking domains. Might be an interesting idea to add this to pkdns. Low priority though.