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...
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
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