Disable DNS

About this task

To disable DNS lookups:

Procedure

  1. Edit file /etc/nsswitch.conf.
  2. Place a pound sign (#) at the beginning of the line that reads hosts: files dns.
  3. After editing, that line must look like the following code:
    
    #hosts: files dns