More domain/port utility functions