Osmoregulatory behaviours should have evolutionarily modified for terrestrialisation of vertebrates. In mammals, sensations of buccal food and drying have immediate effects on postprandial thirst to prevent future systemic dehydration, and is thereby considered to be 'anticipatory thirst'. However, it remains unclear whether such an anticipatory response has been acquired in the non-tetrapod lineage. Using the mudskipper goby (Periophthalmus modestus) as a semi-terrestrial ray-finned fish, we herein investigated postprandial drinking and other unique features like full-body 'rolling' over on the back although these behaviours had not been considered to have osmoregulatory functions. In our observations on tidal flats, mudskippers migrated into water areas within a minute after terrestrial eating, and exhibited rolling behaviour with accompanying pectoral-fin movements. In aquarium experiments, frequency of migration into a water area for drinking increased within a few minutes after eating onset, without systemic dehydration. During their low humidity exposure, frequency of the rolling behaviour and pectoral-fin movements increased by more than five times to moisten the skin before systemic dehydration. These findings suggest anticipatory responses which arise from oral/gastrointestinal and cutaneous sensation in the goby. These sensation and motivation seem to have evolved in distantly related species in order to solve osmoregulatory challenges during terrestrialisation.