Analyzing and Managing Networks
35
will
open the resolv.conf file in the
/etc directory in my specified graphical
text editor, Leafpad. The file should look something like Figure 3-1.
Figure 3-1: A typical
resolv.conf
file in a text editor
As you can see on line 3, my nameserver is set to a local DNS server at
192.168.181.2. That works fine, but if I want to
replace that DNS server with,
say, Google’s public DNS server at 8.8.8.8, I could place the following line in
the
/etc/resolv.conf file to specify the nameserver:
nameserver 8.8.8.8
Then I would just need to save the file. However, you can also achieve the
same result exclusively from the command line by entering the following:
kali >