TUTORIAL HOW-TO: DNS Caching Server

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
From an old thread...

Here's What Works For Us

Here's what works for us. You've got to have a Bind DNS Caching Server running on your PIAF box to keep it going with an Internet outage. If you use FQDNs on phones, then the primary DNS address must be the internal or external IP address of your server depending upon where the phones are located.

Here's a simple script to install and get bind running properly (we hope) on your server. Log into your server as root. Then...

Code:
yum -y install bind*
 
cd /var/named
service named stop
wget http://pbxinaflash.net/source/bind/bind.tgz
tar zxvf bind.tgz
rm bind.tgz
 
echo nameserver 127.0.0.1 > /etc/resolv.conf
 
sed -i 's|$nameserver|127.0.0.1|' /sbin/dhclient-script
 
service named start
service network restart
 
dig pbxinaflash.com
dig pbxinaflash.com
 
# look at the output for the second dig command issued above
# 2d dig command should show a very short DNS lookup time, e.g.
#;; Query time: 1 msec
#;; SERVER: 127.0.0.1#53(127.0.0.1)
# IF ALL IS WELL...
 
#be sure to set named for auto start on bootup
 
chkconfig  named  on --level 2345
chkconfig --list named
 
# named should be configured to start with RunLevels 2,3,4,5


IMPORTANT: When you're finished with the above, run a dig command (e.g. dig inbound1.vitelity.net) for each of the FQDNs of your SIP trunk providers! This caches the info on your server for a rainy day. You can find the info with FreePBX: Tools, Asterisk Info, SIP Info, SIP Registry
 

Members online

No members online now.

Forum statistics

Threads
25,779
Messages
167,505
Members
19,199
Latest member
leocipriano
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top