Plex Documentation → Live TV & DVR
Plex supports DVR when using a tuner for live TV.
There is no official way to record from an IPTV stream or a streaming service such as YouTube TV.
Third party software, such as xTeVe, can emulate an OTA tuner for watching/recording from an IPTV service.