Changing the get_domain function to use strtok_r. Some error found when testing with lagre url