Hello,
I know imscp can't add PTR record.So I edit some conf file.
QuoteDisplay More/etc/bind/named.conf.local
add it:
zone "99.135.140.in-addr.arpa" {
type master;
file "/var/cache/bind/140.135.99.db";
allow-transfer { localhost; };
notify yes;
};
/etc/imscp/bind/working/named.conf.local
add it:
zone "99.135.140.in-addr.arpa" {
type master;
file "/var/cache/bind/140.135.99.db";
allow-transfer { localhost; };
notify yes;
};
/var/cache/bind/140.135.99.db
add it:
$ORIGIN .
$TTL 10800 ; 3 hours
99.135.140.in-addr.arpa IN SOA ns1.da.cycu.edu.tw. hostmaster.da.cycu.edu.tw. (
2016051809 ; serial
10800 ; refresh (3 hours)
3600 ; retry (1 hour)
1209600 ; expire (2 weeks)
3600 ; minimum (1 hour)
)
NS ns1.da.cycu.edu.tw.
$ORIGIN 99.135.140.in-addr.arpa.
** IN PTR da.cycu.edu.tw.
I add it finish.And restart bind service.I test localhost PTR.
QuoteDisplay More
nslookup
> server
Default server: 127.0.0.1
Address: 127.0.0.1#53
> IP
Server: 127.0.0.1
Address: 127.0.0.1#53
IP.in-addr.arpa name = da.cycu.edu.tw.
But it's can't resolve if use internet dns server.
QuoteDisplay More
> server 168.95.1.1
Default server: 168.95.1.1
Address: 168.95.1.1#53
> IP
Server: 168.95.1.1
Address: 168.95.1.1#53
** server can't find IP.in-addr.arpa.: NXDOMAIN
How to fix it?