Disable DNS About this taskTo disable DNS lookups: ProcedureEdit file /etc/nsswitch.conf. Place a pound sign (#) at the beginning of the line that reads hosts: files dns. After editing, that line must look like the following code: #hosts: files dns