Sponsored Content
Full Discussion: Secondary DNS not working
Top Forums UNIX for Dummies Questions & Answers Secondary DNS not working Post 302475278 by kopper on Saturday 27th of November 2010 03:37:41 PM
Old 11-27-2010
Secondary DNS not working

hi guys

I am doing some testing for DNS
I got a master DNS(192.168.2.10) and I setup a slave DNS(192.168.2.11) but when I shutdown the Master DNS my linux client cannot resolve using the slave
any idea way?
This is the named.conf
Code:
options
{
    query-source    port 53;   
    directory "/var/named";
    dump-file         "data/cache_dump.db";
    statistics-file     "data/named_stats.txt";
    memstatistics-file     "data/named_mem_stats.txt";
    listen-on { 192.168.2.10; 127.0.0.1; };
};

logging
{
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };   
};

view "internal"
{
    match-clients        { localnets; };
    match-destinations    { localnets; };
    recursion yes;

    zone "training.com" {
        type master;
        notify yes;
        allow-query { any; };
        file "data/training.com.db";
    };

    zone "2.168.192.in-addr.arpa" {
        type master;
        notify yes;
        allow-query { any; };
        file "data/2.168.192.zone.db";
        };
   
    zone "." {
    type hint;
    file "data/named.ca";
    };
};

Data files

Code:
training.com.db
$TTL    86400
@       IN      SOA     masterdns.training.com root.training.com. ( 
                        2009111914 ; Serial number needs to be increase when zone changes
                        28800      ; Refresh
                        14400      ; Retry
                        3600000    ; Expire
                        86400 )    ; Minimum
                IN       NS  masterdns.training.com.
                IN       A   192.168.2.10 ; 
masterdns       IN       A   192.168.2.10 ; 
secondarydns    IN       A   192.168.2.11 ;
www             IN       A   192.168.2.10 ; 

2.168.192.zone.db
$TTL    86400
@       IN      SOA     masterdns.training.com root.training.com.  (
                                      2009111914 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
          IN    NS    masterdns.training.com.
10        IN    PTR   training.com. ;
10        IN    PTR   masterdns ;
11        IN    PTR   secondarydns ;

Slave DNS
Zone Configuration
Code:
zone "training.com" {
        type slave;
        notify yes;
        allow-query { any; };
        file "data/sec.training.com.db";
        masters { 192.168.2.10; };
    };

    zone "2.168.192.in-addr.arpa" {
        type slave;
        notify yes;
        allow-query { any; };
        file "data/sec.2.168.192.zone.db";
        masters { 192.168.2.10; };

any idea?

thanks a lot
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Secondary DNS question

I have the primary set up, but cannot get the secondary box to answer a query. Here is the message I get: > nslookup dfwnet1 10.26.38.41 *** Can't find server name for address 10.26.38.41: Non-existent host/domain *** Default servers are not available 10.26.38.41 is the IP of the secondary... (3 Replies)
Discussion started by: 98_1LE
3 Replies

2. Solaris

OS Problems -no DNS & SSH not working

I just installed Solaris 6/10 without any problems but I didn't connect the network cable when I installed it. Here are my problems: -I can access webpages using IP addrsses but not with domain names -ssh is installed but it is not running ('ps -e | grep sshd' didn't show it) I have been... (4 Replies)
Discussion started by: kungpow
4 Replies

3. Linux

Secondary groups not working with NFS (+LDAP)

I´m using LDAP for groups and NFS for home dirs. My problem is as follows: I only have a few groups, so it's not the problem everyone else had. When I've mounted a disk over NFS, I need to have my primary group in order to read in the groups I'm a member of. Secondary groups is not working. ... (0 Replies)
Discussion started by: velmont
0 Replies

4. Solaris

dns client not working

Hi All, I have configured linux server as local dns server (practice level). I have given the IP and hostname details in /etc/hosts -bash-3.00# cat /etc/hosts # # Internet host table # ::1 localhost 127.0.0.1 localhost 192.168.1.78 dummy.set.com loghost 192.168.1.57 cent.set.com #... (3 Replies)
Discussion started by: vaibhav.kanchan
3 Replies

5. Red Hat

DNS not working

Hi, I have installed RHEL5 as a new build and need get it to resolve to the internet. At the moment I get following: # dig www.google.com ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> www.google.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status:... (9 Replies)
Discussion started by: Duffs22
9 Replies

6. Red Hat

Split DNS not working with Bind-9.7

Hi All, Distros of machines : RHEL6 Bind Vesrion : Bind-9.7-3.2 I am trying to set up a test DNS for my home network. I have two rhel 6 machines A and B. Machine A has 2 NICs and is acting as a router also, one NIC is facing intranet and the otehr is facing intranet. On machine A i have... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies

7. Emergency UNIX and Linux Support

DNS flush is not working

I have a Linux machine and it seems DNS cache is not getting clear on it. It is still showing old values, even after changing in DNS server by Network team. I did /etc/init.d/nscd restart But still it is showing old values on this server. On my rest of servers in environment, nslookup is showing... (7 Replies)
Discussion started by: solaris_1977
7 Replies

8. Solaris

DNS Primary and Secondary

hi there, i using salaris 10 as my DNS server. i have 2 dns server primary and secondary. if primary dns server i edit/update, the other secondary dns server must be sync too. How can i configure if dns server (primary) can sync the secondary? (1 Reply)
Discussion started by: tappetmus
1 Replies

9. Proxy Server

IPtable rules for DNS/http/https traffic for specific hosts only, not working.

Hi there, I have a VPS and am working on a little side project for myself and friend which is a DNS proxy. Everything was great till recently. My VPS IP has been detected by some botnet or something, and I believe SMURF attacks are occuring. The VPS provider keeps shutting down my VPS... (3 Replies)
Discussion started by: phi0x
3 Replies

10. Solaris

DNS client added to DNS server but not working

Hi, We have built a new server (RHEL VM)and added that IP/hostname into dns zone configs file on DNS server (Solaris 10). Reloaded the configuration using and added nameserver into resolv.conf on client. But when I am trying nslookup, its not getting resolved. The nameserver is not able to... (8 Replies)
Discussion started by: snchaudhari2
8 Replies
named.conf(4)						     Kernel Interfaces Manual						     named.conf(4)

NAME
named.conf - named configuration file SYNOPSIS
/etc/named.conf DESCRIPTION
This file is the default configuration (or boot) file for the named server. This configuration file replaces the named.boot file. The named daemon reads the start-up file when the named daemon starts and when receiving signal SIGHUP. The statements in the named.conf file tell the named daemon what type of server it is, which domains (or zones of authority) it has author- ity over, and where to get the data for initially setting up its database. The name server first needs to know the root name server, which is the authority server for the network. The root name server is estab- lished in the named.conf file by specifying the root server filename (named.ca) as the cache for this name server. The named.conf file consists of a sequence of statements terminated by a semi-colon (;) and comments. Comments can be specified by any of the following: A number sign (#) The C-style /* and */ characters. The C++-style // characters The types of named.conf statements are as follows: Defines a named IP address matching list for access control and other uses. Includes a file. Specifies key information for use in authentication and authorization. Specifies the information that the server logs and the des- tination of the log messages. Controls global server configuration options and sets defaults for other statements. Sets certain configu- ration options on a per-server basis. Defines a zone. The logging and options statements can occur only one time in a configuration file. Many statements contain a block of substatements, which are also terminated with a semicolon. See the BIND Configuration Guide in the Tru64 UNIX HTML Documentation Library for additional information about the description and format of each statement. For examples of various ways of using the named.conf file, see the EXAMPLES section. See named(8) for additional named.conf file directives. Note that the named daemon does not provide other hosts with the information contained in a cache file. Cache files are usually used for listing the name servers for domains higher than the local domain. These data files can have any name. However, for convenience in maintaining the named database, they are generally given names in the fol- lowing form: /etc/named.extension. The general format of named data files is described in /etc/named.*. EXAMPLES
The following examples show the various ways to use the named start-up file. The /etc/named.conf file for venus, a master name server (that which used to be called a primary name server), contains these entries: // Configuration (boot) file for master name server // zone "." { type hint; file "/etc/named.ca"; }; zone "abc.aus.osf.com" { type master; file "/etc/named.abcdata"; }; zone "xyz.aus.osf.com" { type master; file "/etc/named.xyzdata"; }; zone "201.9.192.in-addr.arpa" { type master; file "/etc/named.abcrev"; }; zone "100.114.128.in-addr.arpa" { type master; file "/etc/named.xyzrev"; }; zone "0.0.127.in-addr.arpa" { type master; file "/etc/named.local"; }; In this example, the master name server is venus and the Internet address is 192.9.201.1. The /etc/named.conf file for kronos, a slave name server (that which used to be called a secondary name server), contains these entries: // Configuration (boot) file for slave name server // zone "." { type hint; file "/etc/named.ca"; }; zone "abc.aus.osf.com" { type slave; file "192.9.201.2"; masters { 192.9.201.1; }; }; zone "xyz.aus.osf.com" { type slave; file "192.9.201.2"; masters { 192.9.201.1; }; }; zone "201.9.192.in-addr.arpa" { type slave; file "192.9.201.2"; masters { 192.9.201.1; }; }; zone "100.114.128.in-addr.arpa" { type slave; file "192.9.201.2"; masters { 192.9.201.1; }; }; zone "0.0.127.in-addr.arpa" { type master; file "/etc/named.local"; }; In this example the slave name server is kronos and the Internet address is 192.9.201.2. The /etc/named.conf file for hera, a caching-only name server contains these entries: // Configuration (boot) file for caching-only server // zone "." { type hint; file "/etc/named.ca"; }; zone "0.0.127.in-addr.arpa" { type master; file "/etc/named.local"; }; The /etc/named.conf file for titan, an IPv4 master name server that accepts secure dynamic updates from new clients, contains these entries: It is recommended that you do not enable authentication for IPv6 zones that are dynamically updated. See bind_manual_setup(7) for more information. // Configuration (boot) file for master name server // include "/etc/namedb/named.keys"; zone "." { type hint; file "/etc/named.ca"; }; zone "dyn.aus.osf.com" { type master; file "/etc/named.dyndata"; allow-update { dynnet-titan_update }; }; zone "201.9.192.in-addr.arpa" { type master; file "/etc/named.dynrev"; allow-update { dynnet-titan_update }; }; zone "0.0.127.in-addr.arpa" { type master; file "/etc/named.local"; }; The allow-update substatement in the zone statements specifies that dynamic updates to the master DNS database are successful only if they are signed with the dynnet-titan_update key. The include statement calls named.keys, a file that is read/writable only by superuser and contains the following key configuration statement: key dynnet-titan_update { algorithm hmac-md5; secret "YYnTXprDocI5qizxfT9/A8f9Ec+eq0Oo1DGXvks/Q27kTMMYKw==" }; You generate a private key for the secret substatement by using the dnskeygen command. See the Network Administration guide or bind_manual_setup(7) for more information about configuring secure dynamic updates. RELATED INFORMATION
Commands: named(8), dnskeygen(1). Files: named.star(4). Networking: bind_manual_setup(7). Network Administration delim off named.conf(4)
All times are GMT -4. The time now is 09:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy