Suppose that there is a charge configuration of 2 point charges, say an electric dipole. Gauss's Law wouldn't be so useful (but it would be possible, as far as I understand) because there is not a special symmetry that can give a certain advantage to find the electric field, since the field line configuration is non-uniform.
However, suppose that we try to apply the Gauss's Law at a weird Gaussian Surface for which at every point of the surface, the magnitude of the electric field is the same (such as in those cases where we have a spherical symmetry situation, just that in this case the surface clearly wouldn't be a sphere). Before going to my question, if we try to enclose both charges in the electric dipole, clearly Gauss's Law tells us that the electric flux would be 0, since the net charge inside is 0.
However, what if we enclose just one charge?, suppose that I enclose only the +q charge without enclosing the -q charge, with a surface such that the magnitude of the electric field is the same everywhere at the surface. If I solve for E, would that give the right answer for the magnitude at that point? Or do we need to take into consideration the fact that there is a charge -q lying around in there?
My question comes from the fact that the electric flux at a closed surface is equal to just the charge inside (divided by epsilon-zero). In fact, what I am specifically asking is: if there is a charge configuration in space (like a sphere or a plane-sheet of charge or any other charge distribution), and I enclose that configuration, according to Gauss's Law, we can get the electric field at the surface of the charge configuration. But what if the space is not a vacuum (such that there are other charges apart from my sphere, or sheet of charge...)?, What if outside my imaginary surface, there is another charge distribution that I am not taking into consideration?, Would the application of Gauss's Law to get the magnitude of the electric field for my previous charge configuration would be correct?
Clearly the other charge distribution outside the Gaussian Surface enclosing another charge distribution should affect the electric field in the vicinity of the charge distribution enclosed. Therefore, enclosing a charge distribution like a sphere to get the electric field would only be reliable if the sphere is strictly in a vacuum where no other charges distort its electric field lines (but the electric flux I think would indeed be right, obviously), or is this statement incorrect?
To explain myself correctly, I drew some diagrams, since I don't think I am explaining myself that well
I appreciate any response. Thanks in advance.