tinydns reads invalid memory if the IP list doesn't end with a comma

Note title, right now the code in server.c is assuming there's always a comma after an IP address, which isn't true for the last listed IP address.