Begin to move mdns stuff in separate file