>>57311528>3. how do i deal with dugtrioThat depends on what team you're running and what that team can afford to run.
The hard counter to Dugtrio in Gen III OU is Porygon2. Porygon2 can Trace Arena Trap, stall it out of Earthquakes with Recover, and then kill it with Ice Beam. But, Porygon2 isn't the best mon in the world and so it comes with its own opportunity costs. In modern play it sees usage primarily on Special Offense teams.
If you're running a defensive team, chances are you're running Celebi or Jirachi or Blissey, who get trapped and killed by Dugtrio, especially when a lead Zapdos baits your wall in while baton passing to it. In which case, the solution to this is having a secondary special wall that can afford to go in first to scout out what the deal is, which protects your primary special wall for later. If you have reason to believe Dugtrio is on the opposing team, you need to get Spikes down as soon as possible so that it can get chipped enough to be able to be taken down in a 1v1 by your special wall(s) (or whatever other mon it tries to trap but has a shakey matchup in it's not guaranteed to win). With a Spike down, a typical Dugtrio gets two shot by Seismic Toss, for example.
Another thing you can do is exploit Dugtrio's opportunity cost and use their trap against them. No mon does this better than Dragon Dance Salamamence, for whom this is a free switch in and free setup. But any Flying mon that can generate meaningful momentum with a free turn will do. Just punish the trap essentially---don't see Dugtrio as a nuisance, but a platform, to dab and bound off to victory on.
You can also just have a faster Dugtrio and trap them back if you know they're slower.
Lastly what I'll mention is EV'ing your vulnerable walls to live its attack and ohko it with one of your own moves.