For DV, country of chargeability (country of birth) determines whether you are eligible, because people chargeable to certain countries are not eligible for DV. (For some other immigration categories, country of chargeability determines wait times for visa number to become available, due to the 7% per country cap, which is based on country of chargeability.)
You are eligible for DV. Actually, you would be eligible for DV no matter if you were chargeable to Iran or Kuwait, as neither of them have high rates of immigration to the US. BUT, being eligible for DV doesn't mean you can get the actual immigrant visa. The travel ban prevents people on certain passports from getting visas to the US. In this case, Iranian nationals are not eligible for an immigrant visa, unless you have a passport from a non-banned country, or you fall into one of the other exceptions (e.g. if you were already in the US when the ban took effect).