DUBLIN — President Trump will visit Ireland on June 5, meeting with the Irish prime minister and spending a night at one of his golf resorts, the White House has confirmed.

Mr. Trump is scheduled to fly into Shannon Airport, in western Ireland, after his three-day state visit to Britain, the administration said on Tuesday. He will leave again the next day to attend the 75th anniversary of the D-Day landings in France.

Bilateral talks with Prime Minister Leo Varadkar will be held at the airport, a trans-Atlantic refueling hub in County Clare that has a long history of hosting international meetings.

The announcement ended days of speculation in the Irish and international news media that the visit could be derailed by disagreement about where Mr. Trump would meet with Mr. Varadkar.