I just released  2.6.2 with numerous fixes for makedns.   You might want to
upgrade to it and also take note of the release notes for 2.6.1 and 2.6.2.
There are some requirements on setup for makedns to work with the new
ddns.pm.   At least at that point you will be working with the lastest
makedns fixes that Sun Jing has provided.

Lissa K. Valletta
2-3/T12
Poughkeepsie, NY 12601
(tie 293) 433-3102





From:   Bruce Pennypacker <[email protected]>
To:     xCAT Users Mailing list <[email protected]>
Date:   08/02/2011 10:13 AM
Subject:        Re: [xcat-user] makedns results in empty zonefiles



Jing,

Thanks for the information.  Unfortunately I'm not seeing any db.*.jnl
files being created, nor are the zone files being populated when I restart
named.  When I run makedns it does seem to be doing *something* since it
takes about 4 seconds for it to complete, but nothing shows up in any of
the files in /var/named and no queries to the DNS server with the
names/IP's of defined nodes returns anything:

# time makedns -n
Getting reverse zones, this may take several minutes in scaling cluster.
Completed getting reverse zones.
Updating zones.
Completed updating zones.
Restarting named
Restarting named complete
Updating DNS records, this may take several minutes in scaling cluster.
Completed updating DNS records.
DNS setup is completed

real    0m4.546s
user    0m0.075s
sys     0m0.015s
# ls -l /var/named/
total 16
-rw-rw---- 1 named named 145 Aug  2 09:58 db.10.246.68
-rw-rw---- 1 named named 145 Aug  2 09:58 db.10.246.69
-rw-rw---- 1 named named 145 Aug  2 09:58 db.192.168.3
-rw-rw---- 1 named named 188 Aug  2 09:58 db.hpc03.tufts.edu
# service named restart
Stopping named: .                                          [  OK  ]
Starting named:                                            [  OK  ]
# ls -l /var/named/
total 16
-rw-rw---- 1 named named 145 Aug  2 09:58 db.10.246.68
-rw-rw---- 1 named named 145 Aug  2 09:58 db.10.246.69
-rw-rw---- 1 named named 145 Aug  2 09:58 db.192.168.3
-rw-rw---- 1 named named 188 Aug  2 09:58 db.hpc03.tufts.edu
# nslookup
> server localhost
Default server: localhost
Address: 127.0.0.1#53
> node25.hpc03.tufts.edu
Server:         localhost
Address:        127.0.0.1#53

** server can't find node25: NXDOMAIN
> 192.168.3.35
Server:         localhost
Address:        127.0.0.1#53

** server can't find 35.3.168.192.in-addr.arpa.: NXDOMAIN

On 8/2/11 1:29 AM, Jing CDL Sun wrote:
      Hi Bruce,

      xCAT is using Perl::Net::DNS to set up DNS in xcat 2.6.1, it's a
      little different with the static DNS config. After makedns -n, you
      can see zonefiles(db.*) are created in /var/named, while it's correct
      that you can only see something like this in it:
      -------------------------------------------
      [root@ca4lpar01 named]# cat db.192.168.11
      $TTL 86400
      @ IN SOA ca4lpar01.local. root.ca4lpar01.local. ( 2011080200 10800
      3600 604800 86400 )
        IN NS  ca4lpar01.local.
      -------------------------------------------

      Because the DNS records are actually in db.*.jnl, it's binary file,
      if you run "service named restart", then named will dump the DNS
      records from db.*.jnl to db.<zone>, for example:
      -------------------------------------------
      [root@ca4lpar01 named]# cat db.192.168.11
      $ORIGIN .
      $TTL 86400      ; 1 day
      11.168.192.IN-ADDR.ARPA IN SOA  ca4lpar01.local.
      root.ca4lpar01.local. (
                                      2011080201 ; serial
                                      10800      ; refresh (3 hours)
                                      3600       ; retry (1 hour)
                                      604800     ; expire (1 week)
                                      86400      ; minimum (1 day)
                                      )
                              NS      ca4lpar01.local.
      $ORIGIN 11.168.192.IN-ADDR.ARPA.
      10                      PTR     c1n01.local.
      107                     PTR     ca4lpar01.local.
      [root@ca4lpar01 named]#
      -------------------------------------------

      So I think the point here is if you have db.*.jnl created
      in /var/named? does nslookup work for you?

      Thx.
      Jing





                                                                           
 Bruce Pennypacker                                                         
 <[email protected]>                                             
                                                                           
                                                                        To 
 2011-08-02 03:07                                [email protected] 
                                                 ge.net                    
                                                                        cc 
            Please respond to                                              
         xCAT Users Mailing list                                   Subject 
    <[email protected]>            [xcat-user] makedns       
                                                 results in empty          
                                                 zonefiles                 
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





      I'm using xCAT 2.6.1.  I've defined my site & networks, and generated
      a
      hosts file using makehosts -n which looks correct.  But now when I
      try
      to generate a DNS config using makedns -n I just end up with a bunch
      of
      zonefiles in /var/named that are empty save for the header:

      $TTL 86400
      @ IN SOA jacket.uit.tufts.edu. root.jacket.uit.tufts.edu.
      ( 2011080100
      10800 3600 604800 86400 )
        IN NS  jacket.uit.tufts.edu.

      Why would hosts be written to /etc/hosts when you run makehosts -n
      but
      nothing gets added to DNS when you run makedns -n?

      Thanks,

      -Bruce


      
------------------------------------------------------------------------------

      BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
      The must-attend event for mobile developers. Connect with experts.
      Get tools for creating Super Apps. See the latest technologies.
      Sessions, hands-on labs, demos & much more. Register early & save!
      http://p.sf.net/sfu/rim-blackberry-1
      _______________________________________________
      xCAT-user mailing list
      [email protected]
      https://lists.sourceforge.net/lists/listinfo/xcat-user



      
------------------------------------------------------------------------------

      BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
      The must-attend event for mobile developers. Connect with experts.
      Get tools for creating Super Apps. See the latest technologies.
      Sessions, hands-on labs, demos & much more. Register early & save!
      http://p.sf.net/sfu/rim-blackberry-1


      _______________________________________________
      xCAT-user mailing list
      [email protected]
      https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------

BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user



------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to