Since AnyDesk is not willing or able to provide a list with the IP adresses of their relay hosts and I wanted to test how URL table aliases in pfSense are working I have built this nobrainoneliner which I call via cron every ten minutes.
#!/bin/bash # Variables ANYDESKRELAYHOSTSFILE="filename.txt"; WEBDIR="/path/to/the/directory/where/the/file/is/stored"; # Here the magic happens dig +noall +answer relays.net.anydesk.com | awk '{print $5}' > $WEBDIR/$ANYDESKRELAYHOSTSFILE; exit 0;