Thursday, July 17, 2008

How to Add reverse dns record to your DNS server

My ip address is 85.104.107.16 and I am using Bind DNS Server. Ispc omega is configuring dns server, so this post will be usefull for ispcp omega users.
Open named.conf file
vim /etc/bind/named.conf
add these lines below to file.(Be carefull you are writing your ip address reversely, the fist three part only.)
zone "107.104.85.in-addr.arpa" {
type master;
file "/var/cache/bind/zones/rev.107.104.85.in-addr.arpa";
};
Then make directory
mkdir /etc/bind/zones
And then open your configuration file(this file is for mine, yours will be different sure. According to your ip.)
vim /var/cache/bind/zones/rev.107.104.85.in-addr.arpa
And then write these in the file (My name server and main domain is creasus.eu, yours can be different. And don't forget to add your ip's last number below. Mine is 167, so 167 written below is that. The other things don't change. )
@ IN SOA ns1.creasus.eu. admin.creasus.eu. (
2006081401;
28800;
604800;
604800;
86400
)
;
IN NS ns1.creasus.eu.
167 IN PTR creasus.eu

And after all restart your DNS server
/etc/init.d/bind9 restart

0 comments:

Share