The break-up of Yugoslavia was a long, arguably still on-going, process, the final phase of which happened peacefully. Serbia and Montenegro, that made the post-1992 Yugoslavia, agreed in 2003 to change the name of the country to Serbia and Montenegro, pending the Montenegrin independence referendum scheduled for 2006.
Considering the possibility of another country name depreciation in three years, they agreed to keep the yu domain.
Fun fact, had the Montenegrin referendum gone the other way, the plan was to use .cs as the national domain, which used to be owned by another ex-country, Czechoslovakia.
Technically speaking, "Yugoslavia" continued to exist until 2003, when the name finally got deprecated in favour of "Serbia & Montenegro" as one country (also including the territory of Kosovo), which itself only lasted 3 years before Montenegro declared independence (and Kosovo did the same 2 years after).
So however you spin it, the domain outlived the country by at least 5 years, arguably 15(ish), 9 of which were post-war(s).