Using Perl to Change TTL Values
We’ll change the TTL from 14400 to 100 seconds for all domains
perl -pi -e ’s/14400/100/’ named.db
When changing the IP of a domain, end users will have the old IP of the domain cached at their ISP’s nameservers for a duration of the TTL (time to live). The default value is 14400 seconds (4 hours). This means, that when you change the IP of the sever, the worst case, is the end users will be using the wrong IP for 4 hours before the cache expires and the IP is recached with the correct value.
The simple way to minimize this propogation error is to lower the TTL.
Tags: Perl, TTL Values
How can I see all running processes from the shell ?
Use either:
Tags: processes, shell
Unpacking and configuring kvm components
Prerequisites
*kvm-release.tar.gz
*A VT capable Intel processor, or an SVM capable AMD processor
qemu prerequisites:
`zlib` libraries and headers
`SDL` libraries and headers
`alsa` libraries and headers (optional alsa support: disabled by default but can be enabled with –enable-alsa)
`gnutls` libraries and headers (optional VNC TLS support: enabled by default but can be disabled with –disable-vnc-tls)
kernel headers (on Fedora, the kernel-devel package)
On a debian etch system you can install the prerequisites with:
apt-get install gcc libsdl1.2-dev zlib1g-dev libasound2-dev linux-kernel-headers pkg-config libgnutls-dev
If you’re not running a patched kernel:
tar xzf kvm-release.tar.gz
cd kvm-release
./configure –prefix=/usr/local/kvm
make
sudo make install
sudo /sbin/modprobe kvm-intel
# or: sudo /sbin/modprobe kvm-amd
Downloads
http://www.linux-kvm.org/page/Downloads
Tags: kvm components
Can’t login to DirectAdmin on port 2222
1. DirectAdmin might not be running or
2. You have a firewall blocking port 2222.
In case issue 2ยบ is the one affecting you,
iptables -I INPUT -p tcp –dport 2222 -j ACCEPT
Check your /var/log/directadmin/error.log to check for any errors as to why it isn’t starting:
tail /var/log/directadmin/error.log
Common problems are:
1. Incorrect ethernet_dev set in the /usr/local/directadmin/conf/directadmin.conf file. guide
2. Invalid license, either due to wrong uid/lid, IP, or date. Try: Updating your DirectAdmin License manually
3. Binaries for a different operating system.
You can always try running DirectAdmin by hand (if it’s not already running) to see what the problem is.
cd /usr/local/directadmin
./directadmin b200
Tags: DirectAdmin Support, port 2222
Updating DirectAdmin Manually
If you need to update your copy of DirectAdmin manually, you can do so by running the following commands:
cd /usr/local/directadmin
wget -O update.tar.gz https://www.directadmin.com/cgi-bin/daupdate?uid=123\&lid=1234
tar xvzf update.tar.gz
./directadmin p
cd scripts
./update.sh
service directadmin restart
Where 123 and 1234 are your Client ID and License ID, respectively. Note that if you are running FreeBSD, you might need to add a \ before the ? character in the wget line. If there are errrors extracting the update.tar.gz file, then run:
to search for an error.
Tags: DirectAdmin Support, Manually, Updating