Tags » Script

How to enable new Quad9 (9.9.9.9) DNS and DNSSEC service in Ubuntu 17.10 64-bit using a bash shell script

# How to enable new Quad9 (9.9.9.9) DNS and DNSSEC service 
# in Ubuntu 17.10 64-bit using a bash shell script
# adapt /etc/resolv.conf symlink in order to get DNSSEC support
# working again:
sudo rm /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
# enable systemd caching DNS resolver
rm /tmp/nsswitch.conf
rm /tmp/nsswitch.conf.1
cp /etc/nsswitch.conf /tmp/nsswitch.conf
grep -v hosts /tmp/nsswitch.conf > /tmp/nsswitch.conf.1
# dns must be mentioned in next line, or else wget does not work
echo 'hosts: files mdns4_minimal  resolv dns myhostname' >> /tmp/nsswitch.conf.1
sudo cp /tmp/nsswitch.conf.1 /etc/nsswitch.conf
# set DNS server to 9.9.9.9
rm /tmp/resolved.conf
rm /tmp/resolved.conf.1
cp /etc/systemd/resolved.conf /tmp/resolved.conf
grep -v DNS /tmp/resolved.conf > /tmp/resolved.conf.1
# enable new Quad9 (9.9.9.9) DNS and DNSSEC service
# https://arstechnica.com/information-technology/2017/11/new-quad9-dns-service-blocks-malicious-domains-for-everyone/
echo 'DNS=9.9.9.9' >> /tmp/resolved.conf.1
echo 'DNSSEC=yes' >> /tmp/resolved.conf.1
sudo cp /tmp/resolved.conf.1 /etc/systemd/resolved.conf
sudo systemd-resolve --flush-caches
sudo systemctl restart systemd-resolved
sudo systemd-resolve --flush-caches
sudo systemd-resolve --status
# test DNSSEC validation using dig command-line tool
# see: https://docs.menandmice.com/display/MM/How+to+test+DNSSEC+validation
dig pir.org +dnssec +multi
Ubuntu

VI: Planting the Story Flags

Last week I introduced the concept of the Story Question. Today we’re going to plant the first two Story Flags in order to hang the Story Question. 1,281 more words

Blog Post

[Script] Flip Flappers and Identity Formation

The development of one’s identity is an important part of growing up. Individuals develop across their entire lives, but the foundation of one’s self is incredibly important. 2,414 more words

Essay

Review: Long Day's Journey Into Night by Eugene O'Neill

Eugene O’Neill’s autobiographical play Long Day’s Journey into Night is regarded as his finest work. First published by Yale University Press in 1956, it won the Pulitzer Prize in 1957 and has since sold more than one million copies. 897 more words

Books

Conscious

The one where I write a short screenplay.

The Godfather Scene Analysis

the godfather scene analysis

The Godfather (Francis Ford Coppola, 1972) opens with a black screen fading in the close up of a man, which the audience already heard talking. 1,134 more words

Post

AdLibs Facebook Game Card_Script

Facebook Game Card adalah

  • Voucher yang dapat digunakan untuk membeli item dalam game Facebook.
  • Dapat membantu menyelesaikan misi-misi dalam game.
  • Dapat digunakan untuk ribuan games Facebook.
  • 876 more words