(For instructions on setting up a DNS server, see Linux/DNS).
Why do I have a whole page dedicated to DNS?
Well, DNS is important. Tracking people's DNS queries provides you a record of what sites they are visiting, based on their IP addresses. It's important to understand where your DNS queries are going, who might be seeing them, and who might be storing them (to, say, hand over to the government when they ask).
This is why the WikiLeaks wiki has a page on DNS: https://www.wikileaks.org/wiki/Alternative_DNS
In Linux, the DNS servers that a computer uses to look up website names and turn them into IP addresses are listed in the file
Notes on network settings in Debian, from the Debian Wiki: https://wiki.debian.org/NetworkConfiguration#Defining_the_.28DNS.29_Nameservers
NetworkManager kept changing my resolv.conf to be whatever it automatically obtained from my gateway (my home router), which unfortunately was a DNS I did NOT want to use.
To fix this, I had to modify the NetworkManager settings for my ethernet device. Here's a script to walk you through that process:
cat fix_dns.sh #!/bin/bash # # Fix the DNS settings echo "" echo "FIX DNS SETTINGS" echo "----------------" echo "" echo "Step 1) Find your connection in the list and click Edit." echo "Step 2) Click the IPv4 Settings tab." echo "Step 3) Choose Automatic (DHCP) Addresses Only instead of just Automatic (DHCP)" echo "Step 4) Enter DNS servers in DNS Servers field, separated by spaces." echo "" echo " OpenDNS:" echo " 126.96.36.199" echo " 188.8.131.52" echo "" echo " Cisco" echo " 184.108.40.206" echo " 220.127.116.11" echo " 18.104.22.168" nm-connection-editor &> /dev/null
This prints out teh steps, then runs the NetworkManager connection editor to allow you to update the settings of your particular network interface.
If you're using multiple network interfaces (e.g., a wired interface and a wireless interface) and want to use the same DNS for all of them, edit them one-at-a-time.
Metasploit DNS Recon
Tricks for DNS recon and information-gathering using Metasploit:
Networkingpages and notes about computer networks.
Man in the Middle attack vectors on wired networks: Man in the Middle/Wired
Packet analysis with Wireshark: Packet Analysis
Linux networking: Linux/Networking
Using Aircrack: Aircrack
Many Ways to Crack a Wifi: Cracking Wifi
Notes on OpenVPN: OpenVPN
Setting Up a Static Key VPN: OpenVPN/Static Key
IP Version 6: IPv6
Flags · Template:NetworkingFlag · e