Make DNS portion optional.