FTP could not connect after applying local DNS(private DNS)
- by Rahul
I made a software router in CentOS linux and in that made a DNS server.
I am using centOS 6..4
for making DNS i applied following steps:
changed the host name = abc.zoom.com and domain name = zoom.com.
then did changes in the named.rfc.1912 file as per
rename named.localhost = forward
and named.loopback = reverse
in forward lookups i changed
zone "zoom.com" IN {
type master;
file "forward";
allow-update { none; };
and in reverse lookups i changed
zone "x.168.192.in-addr.arpa" IN {
type master;
file "reverse";
allow-update { none; };
and then did changes in the named.conf file
options {
listen-on port 53 {192.168.x.x;};
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query {any;};
recursion yes;
192.168.x.x is my local DNS address.
then i copied lookups file in /var/named
and edited the file "forward"
$TTL 1D
@ IN SOA abc.zoom.com. rahul.abc.zoom.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS abc.zoom.com.
abc A 192.168.x.x
and for " reverse"
$TTL 1D
@ IN SOA abc.zoom.com. rahul.abc.zoom.com.(
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS abc.zoom.com.
x PTR abc.zoom.com.
when i put the public ip details in the Eth0 it was automatically redirect in to the resolve.conf
when i checked through dig command the answer, query all were 1.
my system is itself a Software router.In gateway of my all local machine i give my system ip address. however my DNS and Gateway IP is same.
Now the problem is that.
i gave the static ips to all my local machines
when i give the DNS which i made i.e 192.168.x.x
that time my ftp is not connect in filezilla software
E.g: host : pqr.zoom.com ("zoom.com" is my local domain name)
username : pqr
password : pqr
gives an error:
Error: Connection timed out
Error: Could not connect to server
but if i give the public DNS address it get connected.
i want to solve this problem please give solution on this.