Probably DNS resolving on the raspberry pi is not configured correctly.
aprsc just uses the system resolver library to look up names.
How DNS resolver is configured depends on your flavour and version of
Linux (DHCP, /etc/resolv.conf perhaps being generated by one of the other
frameworks, systemd-resolved, etc), so you might want to look at the
documentation of the Linux distribution you're using.
- Hessu