Move $preferdns to a separate section extra_flags