DEF is manufactured to an international standard: ISO22241. I've purchased and read the specifications and DEF meeting the ISO standard contains "pure water" and "technically pure urea".
Pure water can me made using a variety of processes: Reverse Osmosis, distillation, and Ion-exchange filtration. The key is removal of anything that is not water.
Technically pure urea is usually made from natural gas in a very sophisticated and expensive chemical process facility with extensive controls for purity and content. Technically pure urea is somewhat similar to agricultural urea, but is much purer and contains no contaminants that could adversely affect the SCR system (like biuret). I've tested DEF made from both, and there are vastly more contaminants in agricultural urea.
I've purchased technically pure urea used for DEF manufacture, and have had it tested when dissolved in pure water. The resulting aqueous urea solution is very pure. Testing is quite expensive, about 600-800 dollars per test.
All DEF labeled ISO22241-1 is the same. Also look for the API certification mark on any container of DEF. This mark means that the manufacturer has registered their company with the API, submitted evidence of compliance with ISO 22241, and has paid the annual royalty fee of $7500 for the marking. The API conducts random sampling and testing of DEF to monitor DEF quality. The number of tests is small (less than 100 per year at this time). I met with the API employee that runs this program at the 2013 Diesel Exhaust Fluid Conference. The API seems committed to increasing quality monitoring.
Make sure DEF you buy in jugs is fresh (look for a date code). DEF shelf life is about 2 years at room temperature, less if stored above 90F. Make sure the seal is intact on any jug before using it. Bulk DEF from truck stops is usually fresh and is filtered in the dispensing equipment prior to going in your tank.
Use caution with filling gas cans or any containers with bulk DEF. There are very few materials that can be used in contact with DEF without contaminating the DEF. Avoid storing DEF in any container with metallic components that can easily contaminate the DEF. Plain rubber materials have poor compatibility with DEF. Plain steel containers would result in severe contamination of the DEF in a short time. Previously filled retail jugs may be usable, but are usually labeled for one-time use. Be careful reusing any cap with a paper-foil seal.
I'll try to answer any questions RV.net members have about DEF. I'm a semi-retired engineer and have made Clean Diesel technology a hobby of mine, and amassed quite a lot of information on the subject of Diesel Exhaust Fluid.
"Doctor DEF"