Text is better than email, which is better than LinkedIn DM.
“Hey NAME! I saw a job post for a TITLE on the COMPANY website — any chance you could refer me internally? I know it makes a big difference.”
OR
“Hey NAME! I saw a job post for a TITLE on the COMPANY website — do you know the hiring manager in charge?”