The pistol, is more of a problem than a long gun. Do you really want the pistol? Google "shipping firearms to alaska from lower 48" and you will get some help. Read carefully the from you, and to you but in care of the FFL holder parts on their sites. The problem is that an FFL in Alaska cannot transfer a pistol to a non-Alaska resident. They can receive a pistol from you and legally hold it for you. They will not even open the box. You can ship it yourself by Fed Ex or UPS, but an FFL can ship US Post Office and even with their fee you might save you some money. If you have a Fed Ex or UPS account with steep discounts you are golden however.
Now on your return, you can drop the pistol at the same FFL in Alaska and he can then mail it to your home residence after you make it back. On the other hand, you can repeat the process by finding a FFL anywhere in the lower 48. Clear as mud? Be careful and follow the rules. Don't be reluctant to call the FFL you chose and talk it out. They do this all the time.