Host cell enzymes that introduce methyl groups into bases of DNA. In prokaryotic cells two methyl groups are introduced into the palindromic sequences by the restriction endonucleases that recognize the palindrome; when methylated, the restriction enzyme does not cut the DNA so that methylation protects host cell DNA from cleavage.