LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DNS configuration (https://www.linuxquestions.org/questions/linux-newbie-8/dns-configuration-594734/)

tsaravan 10-26-2007 05:14 AM

DNS configuration
 
Hi,

In my linux box DNS has been configured as follows:

1) in resolv.conf
nameserver 127.0.0.1

2) in named.conf
//
// named.conf for Red Hat caching-nameserver
//

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
// forward first;
// forwarders {
// 61.1.96.69;
// 61.1.96.71;
// };
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "." IN {
type hint;
file "named.ca";
};

zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};

zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};

zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};

zone "teri.res.in" IN {
type slave;
file "slaves/teri.res.in.hosts";
masters {
172.16.0.41;
};
};
zone "src.teri.res.in" IN {
type slave;
file "slaves/src.teri.res.in.hosts";
masters {
172.16.0.41;
};
};
include "/etc/rndc.key";

Now i have the following problems:

1) My linux box is not able to access 172.16.0.41 (primary DNS) for some reason
2) in our LAN name resolution is not happening for private addresses where all the users DNS is specified as 192.168.0.1 in NIC
3) not able to send emails from this server
4) this server is running named but when tried to ping for eg. ess.teri.res.in, i am getting host unknown

I want to understand the problem and fix given the above scenario.

regards,

T. Saravana

elfoozo 11-10-2007 10:59 PM

For 1), 2) and 4), Check your logs to ensure the slave zones are not being denied transfer to this name server.

3) Mail sending issues are varied and could be entirely unrelated. Fix 1, 2, and 4 first.


All times are GMT -5. The time now is 03:55 PM.