DNS

From Indie IT Wiki
Jump to: navigation, search

DNS Performance Charts

https://www.dnsperf.com/#dns-resolvers

Add MX Records For Subdomain On DynDNS

Dyn Standard DNS Service > Preferences > Enable Expert Web-Interface > Add DNS Record > sub.domain.com + MX + Value > Create Record

https://account.dyn.com/dns/prefs.html

MX Test

https://toolbox.googleapps.com/apps/checkmx/

DNS Testing Web Sites

http://www.solvedns.com

http://www.intodns.com

HOWTO: Use nslookup Tool

nslookup -type=type domain.name dnsserver

e.g.

nslookup -type=A www.google.com google-public-dns-a.google.com

HOWTO: DynDNS Dynamic DNS Client Configurator

https://account.dyn.com/tools/clientconfig.html

HOWTO: List Of Adservers Ad Servers Advert Servers

http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext

HOWTO: Add MX Or CNAME Records To DNSMasq

http://mohan43u.wordpress.com/2012/08/06/dnsmasq-for-home-user/

HOWTO: Block Web Sites Using DNSMasq

sudo nano /etc/dnsmasq.d/blocklist
     address=/facebook.com/127.0.0.1
sudo nano /etc/dnsmasq.conf
     conf-file=/etc/dnsmasq.d/blocklist
sudo service dnsmasq restart

Thanks - http://home.swkls.org/dnsmasq-on-centos-6-for-filtering

HOWTO: Turn On DNS Query Logging Using DNSMasq

sudo nano /etc/dnsmasq.conf
     log-facility=/var/log/dnsmasq.log
     log-queries
sudo service dnsmasq restart

HOWTO: Local Network Fast Caching Name Server + DHCP Server Using DNSMasq

Laptop > Local Server + DNSmasq + /etc/hosts > OpenDNS + Google DNS

Disable your modem's DHCP Server.

Edit your local server static network configuration

sudo nano /etc/network/interfaces

dns-nameservers 127.0.0.1
sudo nano /etc/NetworkManager/NetworkManager.conf

[main]
plugins=ifupdown,keyfile
dns=dnsmasq
[ifupdown]
managed=false

Install DNSmasq...

sudo aptitude install dnsmasq

Configure...

sudo nano /etc/default/dnsmasq

IGNORE_RESOLVCONF=yes
sudo nano /etc/dnsmasq.conf

resolv-file=/etc/dnsmasqresolv.conf
domain=domain.uk.com
dhcp-range=192.168.0.100,192.168.0.200,12h
dhcp-host=e8:03:9a:ed:65:56,paul-laptop,192.168.0.103,12h
dhcp-option=3,192.168.0.1

Add the alternative DNS servers which DNSmasq will use...

sudo nano /etc/dnsmasqresolv.conf

nameserver 208.67.222.222
nameserver 208.67.222.220
nameserver 8.8.8.8
nameserver 8.8.4.4

Add machines to your server's /etc/hosts file...

sudo nano /etc/hosts

127.0.0.1 localhost.localdomain localhost
192.168.0.1 modem.domain.uk.com modem
192.168.0.2 mythbuntu-server3.domain.uk.com www.domain.uk.com domain.uk.com mythbuntu-server3
192.168.0.3 playstation.domain.uk.com playstation
192.168.0.103 samsung-laptop.domain.uk.com samsung-laptop
192.168.0.104 printer.domain.uk.com printer

Start DNSmasq...

sudo service dnsmasq restart

Test that domains resolve to your local server when in your local network...

dig domain.uk.com

; <<>> DiG 9.9.2-P1 <<>> domain.uk.com.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46945
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;domain.uk.com.		IN	A 

;; ANSWER SECTION:
domain.uk.com.	0	IN	A	192.168.0.2

;; Query time: 0 msec
;; SERVER: 192.168.0.2#53(192.168.0.2)
;; WHEN: Thu Apr 10 15:28:45 2014
;; MSG SIZE  rcvd: 52

Job, done!

https://help.ubuntu.com/community/Dnsmasq

http://www.thekelleys.org.uk/dnsmasq

HOWTO: Supersede DNS In DHCP Client

Here, you can configure your local DHCP client not to use DNS server addresses provided by the DHCP server, but only local server instead, or any other servers you want to use, or give more than the 3 maximum set by resolvconf. To do so I add in my /etc/dhcp/dhclient.conf file the following line

supersede domain-name-servers 127.0.0.1;

or

supersede domain-name-servers 208.67.222.222 208.67.222.220 8.8.8.8 8.8.4.4;

DNS Leak Test

https://dnsleaktest.com/

Trace DNS Route

dig +trace domain.name

Global DNS Propagation Checker - What's My DNS?

http://www.whatsmydns.net is an online service that allows you to instantly perform a DNS lookup to check a hostnames current IP Address and other DNS information against a selection of random name servers around the world. This is especially useful to check the current state of DNS propagation after making changes to your domains zones.

All Good DNS Servers In One

Install the resolvconf package...

sudo aptitude install resolvconf

Remove your existing resolv file...

sudo rm -rfv /etc/resolv.conf

Edit your networking interfaces file...

sudo nano /etc/network/interfaces

Add the line in bold, then save and exit...

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 208.67.222.222 208.67.222.220 8.8.8.8 8.8.4.4

Configure the resolv file...

sudo dpkg-reconfigure resolvconf

Answer <yes> and reboot the server...

sudo reboot

Thanks - http://ubuntuforums.org/showthread.php?t=1836144

List of Public DNS Servers

https://duckduckgo.com/?q=dns+server

https://wiki.archlinux.org/index.php/Resolv.conf#Alternative_DNS_servers

Verisign Public DNS Servers

nameserver 64.6.64.6
nameserver 64.6.65.6

OpenDNS Public DNS Servers

nameserver 208.67.222.222
nameserver 208.67.220.220

Test - http://welcome.opendns.com/

Google Public DNS Servers

nameserver 8.8.8.8
nameserver 8.8.4.4

Plus Net DNS Servers

nameserver 212.159.6.9
nameserver 212.159.6.10

Unlocator DNS Servers

nameserver 185.37.37.37
nameserver 185.37.37.185

https://support.unlocator.com/customer/portal/articles/1385627-how-to-set-up-ubuntu

Portaller DNS Servers (for use with Pandora)

Change DNS to these IPs and listen to Pandora and Spotify outside USA...

nameserver 107.170.15.247
nameserver 77.88.8.8

http://portaller.com

Tunlr DNS Servers

nameserver 45.33.81.76
nameserver 45.33.12.13

Tor Network DNS Proxy Anonymous Private Browser

Debian / Ubuntu Repository...

sudo add-apt-repository ppa:webupd8team/tor-browser
sudo apt-get update
sudo apt-get install tor-browser

Or download the Tor browser for Linux 64 bit directly...

https://www.torproject.org/projects/torbrowser.html.en#linux

Dig

dig @nameserver hostname type

e.g.

dig @8.8.8.8 indie-it.com A

DNS Look Up

Linux Terminal $:

host www.indie-it.com
Windows Command Prompt $:

nslookup www.indie-it.com