Working consumer read
Lock DNS lookup
Write to file
Refactor locks