Linux

Convert Bind DNS zone into PTR records

The following script I made in order to convert the forward DNS records in a /var/named/db.[domain] file into the correct format for a reverse DNS db.[subnet prefix] file. #!/bin/sh (…) DNSROOT=/var/named PREFIX=$1 DOMAIN=$2 shift 2 DNSPRE=$DNSROOT/db.$PREFIX DNSDOM=$DNSROOT/db.$DOMAIN echo “; save…

Installing NTP (time synchronisation)

Set timezone (optional) create symbolical link from /usr/share/zoneinfo/… to /etc/localtime: ln -sf /usr/share/zoneinfo/Europe/Brussels /etc/localtime Set UTC mode (optional) if your hardware clock runs in UTC (Universal Coordinated Time) mode, add UTC=true to the /etc/sysconfig/clock file Make sure ntpd is not…

Squid cachemgr.cgi UI hack

Squid has a little system statistics viewer built-in: The cache manager (cachemgr.cgi) is a CGI utility for displaying statistics about the squid process as it runs. The cache manager is a convenient way to manage the cache and view statistics…