Tuesday, June 9, 2009

Setting reverse DNS in Bind in Debian

If you have a simple DNS setting without Reverse DNS, this might help you to setup.

Step 1: Add Reverse zone entery in /etc/bind/named.conf
// add local zone definitions here

zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/yourdomain.rev";

zone "yourdomain.com" {
type master;
file "/etc/bind/yourdomain.com";
allow-query { any; };

Step 2: Create the /etc/bind/yourdomain.rev file

$TTL 3000
@ IN SOA ns.yourdomain.com. postmaster.yourdomain.com. (
1312 ; Serial
300 ; Refresh
150 ; Retry
4W ; Expire
1H ) ; Negative Cache TTL

; NS

IN NS ns.yourdomain.com.

1 IN PTR www.yourdomain.com.
2 IN PTR mail.yourdomain.com.

Step 3: Reload the configuration
/etc/init.d/bind force-reload

Step 4: Test the Reverse lookup
before doing that make sure your DNS is right one in /etc/resolve.conf file,

> mail.yourdomain.com

Non-authoritative answer:
Name: mail.yourdomain.com
Address: name = mail.yourdomain.com.


Allow TFTP traffic Through IPCOP Firewall

It is weired that IPCOP block the tftp traffic from external server to internal. In order to work properly we have to add rule manually in the /etc/rc.d/

imran@imran-laptop:~$ ssh root@ -p 222
root@'s password:
Last login: Mon Jun 8 16:21:12 2009 from imran-laptop.owera.com
root@firewall:~ # nano /etc/rc.d/rc.network

## add following for TFTP traffic

modprobe ip_conntrack_tftp
modprobe ip_nat_tftp

Reboot the Firewall to take effect or enter the above command in command line.

Further Info: