Skip to content

Instantly share code, notes, and snippets.

@dynax60
dynax60 / subnets.pl
Created February 3, 2023 09:15
Script to get subnets in CIDR notation for the selected countries
#!/usr/bin/perl
# dnf install perl-Net
# wget ftp://ftp.ripe.net/ripe/dbase/split/ripe.db.inetnum.gz
# wget https://ftp.apnic.net/apnic/whois/apnic.db.inetnum.gz
# zcat ripe.db.inetnum.gz | ./subnets.pl RU BY
# zcat apnic.db.inetnum.gz | ./subnets.pl MN
use Net::CIDR qw(range2cidr);
use Symbol;
use strict;
@binarykore
binarykore / whois.php
Created September 16, 2022 04:48
WhoIS Servers
private $_servers = [
"ac" => "whois.nic.ac",
"ae" => "whois.aeda.net.ae",
"aero" => "whois.aero",
"af" => "whois.nic.af",
"ag" => "whois.nic.ag",
"al" => "whois.ripe.net",
"am" => "whois.amnic.net",
"as" => "whois.nic.as",
"asia" => "whois.nic.asia",
@rail01
rail01 / Public_Polish_NTP_Servers.md
Last active March 3, 2024 11:50
List of publickly accessible NTP time servers in Poland

Below is the list of publickly accessible NTP time servers located in Poland, along with their hostnames, IP addresses, Stratum levels, AS numbers and contact information.

List consists of trustworthy sources such as government agencies, scientific organizations, ISPs or major infrastructure providers. STRATUM 1 and 2.

If you're looking to use any of those NTP servers in business-critical production environment, please consider obtaining time from a time source directly, e.g. via GPS receiver or caesium atomic clock.

List

Host organization Hostname(s) IPv4 IPv6 STRATUM ASN Contact information
Główny Urząd Miar (Central Office of Measures) tempus1.gum.gov.pl tempus2.gum.gov.pl 194.146.251.100 194.146.251.101 N/A 1 AS50606 time@gum.gov.pl
@leosaa
leosaa / chronycfreebsd.md
Last active April 22, 2024 16:57
Chronyc in FreeBSD

Install chrony in FreeBSD

chrony is a versatile implementation of the Network Time Protocol (NTP). It can synchronise the system clock with NTP servers. Chrony is an accurate network time daemon and an alternate implementation of the Network Time Protocol (NTP) compared to ntp.org's NTPd.

Chrony has quite a few advantages over the other NTP implementations, check the chrony ntp comparison page for more details.

Installing

FreeBSD 12 supports Chrony v3.5 which allows privilege separation. The installer will create the user chronyd. So the Chrony daemon will running as the the unprivileged user chronyd

@zhangyoufu
zhangyoufu / ipv6-address-space.md
Last active March 27, 2023 06:30
IPv6 Address Space

IPv6 Address Space

::/128               Unspecified Address
  ::1/128            Loopback Address
  ::ffff:0:0/96      IPv4-mapped Address
64:ff9b::/96         IPv4-IPv6 Translate
64:ff9b:1::/48       IPv4-IPv6 Translate
100::/64             Discard-Only Address Block
0200::/7             OSI NSAP-mapped prefix set (deprecated)
@evoknow
evoknow / public_dns_servers.csv
Last active July 21, 2021 19:04
Public DNS servers
Provider Type IP Address
Google primary 8.8.8.8
Google secondary 8.8.4.4
Cloudflare primary 1.1.1.1
Cloudflare secondary 1.0.0.1
Quad9 primary 9.9.9.9
Quad9 secondary 149.112.112.112
Verisign primary 64.6.64.6
Verisign secondary 64.6.65.6
Alternate DNS primary 198.101.242.72
@mschep
mschep / bird2.conf
Last active January 30, 2024 19:55
BIRD 2 configuration including RPKI
# Very minimal BIRD2 configuration with RPKI enabled
log syslog { info, remote, warning, error, auth, fatal, bug };
log "/var/log/bird.debug.log" { debug, remote, trace };
router id 193.0.31.28;
protocol device {
}
@nelsnelson
nelsnelson / public_dns_servers.md
Created April 23, 2018 16:07
Public DNS Servers
@mortonfox
mortonfox / publicdns.md
Last active August 28, 2023 03:43
[Public DNS servers] #dns #net

OpenDNS

208.67.222.222
208.67.220.220

2620:0:ccc::2
2620:0:ccd::2

Google DNS

@tuklusan
tuklusan / ntp.conf
Last active March 31, 2019 08:29
sanyalnet-cloud-vps2.freeddns.org stratum-2 /etc/ntp.conf - read more at http://supratim-sanyal.blogspot.com/2017/03/free-public-stratum-2-and-stratum-3-ntp.html
# --
# This is Supratim Sanyal's NTP Server configuration file
# To test, use "ntpdate -q <this host>" from another host
# This server will not respond to peer queries ("ntpdc -q") etc. from
# external hosts.
#
# The stratum 1 servers used by this server are mostly educational and
# military servers from:
# http://support.ntp.org/bin/view/Servers/StratumOneTimeServers?redirectedfrom=Servers.StratumOne
# Comment out the stratum 2 servers to make this server stratum 2 with