Net Unrealized Appreciation

Attempting to use NUA. However, I do not wish to sell any stock for cost basis - I like the receipt of dividends. How does one pay tax on cost basis? If payment of taxes on cost basis is made to IRS, will the IRS track the no sale of stock? How long?