a non - transitory computer readable recording medium storing therein a communication program , the communication program relaying communication from an application operating on a terminal to a communication destination and causing a computer to execute a process , the process including : switching a communication protocol for the communication from a first protocol to a delay / disruption tolerant networking protocol , in accordance with a connection condition with the communication destination for the communication ; and notifying the terminal of a failure of a specific communication in cases when the specific communication has been notified to the application as completed and the specific communication in the dtn protocol results in failure .