PowerShell – Compare Windows Server Host Files
If you maintain more than one Windows server sometimes you need a quick way to determine the host file differences on each server, the code below will help.
If you maintain more than one Windows server sometimes you need a quick way to determine the host file differences on each server, the code below will help.
As a web developer you often have to use a host file, this script helps assist a safe and fast change with little effort.
Replace the IP addresses with your IP addresses Modify your config file to look like this When done you need to test the config You should see something like nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful Reference: https://www.nginx.com/blog/load-balancing-dns-traffic-nginx-plus/
Execute with
The code below will assist you in creating one or more Raspberry Pi ad block service DNS servers. Equipment List: 2 (suggested but you can do it with one) Raspberry Pi Microcomputers Raspberry Pi 3B+ (or better) are recommended (look at CanaKit (http://amzn.to/2vxgLLD)) 1 USB Keyboard and USB Mouse 1 Device to test the configuration…
If you manage a list of domains it’s sometimes helpful to have a script like this to check the information from time to time. I plan to clean this up in time but for now this works. First create a text file like below that has domains in it Then create and run this bash/shell…