Basic DNS recording
Minor fix for variable scope