DNS: Difference between revisions

From 太極
Jump to navigation Jump to search
(Created page with "[https://www.lynda.com/Server-tutorials/Managing-DNS-Essential-Training/453346-2.html Managing DNS Essential Training] from lynda.com")
 
No edit summary
Line 1: Line 1:
= Resource =
[https://www.lynda.com/Server-tutorials/Managing-DNS-Essential-Training/453346-2.html Managing DNS Essential Training] from lynda.com
[https://www.lynda.com/Server-tutorials/Managing-DNS-Essential-Training/453346-2.html Managing DNS Essential Training] from lynda.com
= DNSCrypt =
* https://en.wikipedia.org/wiki/DNSCrypt
* [https://github.com/jedisct1/dnscrypt-proxy dnscrypt-proxy 2 - A flexible DNS proxy, with support for encrypted DNS protocols]
* [https://www.linuxuprising.com/2018/10/install-and-enable-dnscrypt-proxy-2-in.html Install and Enable DNSCrypt Proxy 2 in Ubuntu 18.04 Or 18.10 / Debian Unstable Or Testing]
= DNS server =
* [https://opensource.com/article/17/4/introduction-domain-name-system-dns Introduction to the Domain Name System (DNS)]
* [https://opensource.com/article/17/4/build-your-own-name-server Build your own DNS name server on Linux]
== setup ==
* https://support.rackspace.com/how-to/changing-dns-settings-on-linux/
* https://helix.nih.gov/user_guides/kerb5_config.html
= DNSmasq (DNS + DHCP server) =
* [http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html Man page] and [http://www.thekelleys.org.uk/dnsmasq/docs/setup.html Setup]
* [https://www.linux.com/learn/dnsmasq-easy-lan-name-services Dnsmasq For Easy LAN Name Services]
* https://wiki.archlinux.org/index.php/dnsmasq
* https://wiki.debian.org/HowTo/dnsmasq
* http://www.linuxjournal.com/content/dnsmasq-pint-sized-super-d%C3%A6mon
* https://blogging.dragon.org.uk/howto-setup-dnsmasq-as-dns-dhcp/
== Local forwarding server ==
dnsmasq program is running on my Ubuntu and Linux/Mint machines.
See [https://askubuntu.com/questions/627899/nameserver-127-0-1-1-in-resolv-conf-wont-go-away nameserver 127.0.1.1 in resolv.conf won't go away!]
<syntaxhighlight lang='bash'>
$ ps -ef | grep -i dnsmasq
$ sudo netstat -anp | grep -i dnsmasq
</syntaxhighlight>
= Change DNS setting =
* [https://www.makeuseof.com/tag/change-dns-increase-internet-speed/ Why Changing DNS Settings Increases Your Internet Speed], [https://www.makeuseof.com/tag/best-dns-providers-security/ 5 DNS Servers Guaranteed to Improve Your Online Safety]
** https://1.1.1.1/, [https://www.ithome.com.tw/news/122215 隱私優先、速度最快,公共DNS服務1.1.1.1上線了]
** Google: 8.8.8.8 and 8.8.4.4
** OpenDNS: 208.67.220.220 and 208.67.222.222
** DNS Watch:  84.200.69.80 and 84.200.70.40
** OpenNIC: 206.125.173.29 and 45.32.230.225
** UncensoredDNS: 91.239.100.100 and 89.233.43.71
* [https://www.safervpn.com/support/articles/115000327609-Change-DNS-Settings-on-Windows-Mac-Android-IOS-Linux Change DNS Settings on Windows / Mac / Android / IOS / Linux]
* [https://websiteforstudents.com/setup-cloudflare-dns-on-ubuntu-16-04-17-10-18-04-desktop/ Setup CloudFlare DNS On Ubuntu 16.04 / 17.10 / 18.04 Desktop]
*# Open Ubuntu Network Manager (System settings > Network > Settings > Wired or Wireless or both)
*# Select both IPv4 and IPv6 and turn off automatic DNS IP settings… then type the custom Cloudflare DNS IP addresses you want to use…
* [https://www.makeuseof.com/tag/cloudflare-1111-dns-mobile/ You Can Now Use Cloudflare’s 1.1.1.1 DNS on Mobile]
== Flush DNS cache ==
[https://support.opendns.com/hc/en-us/articles/227988627-How-to-clear-the-DNS-Cache- How to clear the DNS Cache?]
== Test if you are using OpenDNS ==
https://welcome.opendns.com/
== Query DNS server ==
To [https://askubuntu.com/questions/152593/command-line-to-list-dns-servers-used-by-my-system list the current DNS servers used by my system],
Method 1:
<syntaxhighlight lang='bash'>
# Ubuntu >= 15
$ nmcli dev show | grep 'IP4.DNS'
$ nmcli device show <interfacename> | grep IP4.DNS
# Ubuntu <= 14
$ nmcli dev list iface <interfacename> | grep IP4
</syntaxhighlight>
Method 2:
<syntaxhighlight lang='bash'>
$ cat /etc/resolv.conf
</syntaxhighlight>
Another way is to use the R packages: [https://cran.r-project.org/web/packages/gdns/index.html gdns] and [https://github.com/hrbrmstr/dnsflare dnsflare]. [https://rud.is/b/2018/04/01/more-options-for-querying-dns-from-r-with-1-1-1-1/ More Options For Querying DNS From R with 1.1.1.1].
== 3 Ways to Check DNS Propagation Status ==
https://www.makeuseof.com/tag/check-dns-propagation-status/

Revision as of 09:39, 30 August 2019

Resource

Managing DNS Essential Training from lynda.com

DNSCrypt

DNS server

setup

DNSmasq (DNS + DHCP server)

Local forwarding server

dnsmasq program is running on my Ubuntu and Linux/Mint machines.

See nameserver 127.0.1.1 in resolv.conf won't go away!

$ ps -ef | grep -i dnsmasq

$ sudo netstat -anp | grep -i dnsmasq

Change DNS setting

Flush DNS cache

How to clear the DNS Cache?

Test if you are using OpenDNS

https://welcome.opendns.com/

Query DNS server

To list the current DNS servers used by my system,

Method 1:

# Ubuntu >= 15
$ nmcli dev show | grep 'IP4.DNS'
$ nmcli device show <interfacename> | grep IP4.DNS
# Ubuntu <= 14
$ nmcli dev list iface <interfacename> | grep IP4

Method 2:

$ cat /etc/resolv.conf

Another way is to use the R packages: gdns and dnsflare. More Options For Querying DNS From R with 1.1.1.1.

3 Ways to Check DNS Propagation Status

https://www.makeuseof.com/tag/check-dns-propagation-status/