Arif,

First thing, if my understanding is correct, then the number of hosts in 
/etc/hosts is not necessary to be the perfect multiple of $numreq :). For 
example, if you have 500 hosts in /etc/hosts(currently we do not support 
multiple domain, so these 500 hosts should belong to the same zone), and 
the $numreq=300, then when you run makedns -n, the 300 entries in front 
will be pushed into dns update request, then go into the case "if 
($numreqs == 0) {}" and sent out by "$resolver->send($update)"; While for 
the left 200 entries, since it's less than 300, so it will not go into the 
case "if ($numreqs == 0) {}", instead, it will go into the case "if 
($numreqs != 300) {}", so anyway, all the entries will be updated. Please 
correct me if I'm wrong.

Second, back to your dns error, I saw there were *.jnl files generated in 
/var/named, so I assume the nameserver should already be working. Have you 
got chance to try nslookup to verify?

Thx.
Jing







Arif Ali <[email protected]> 
2013/01/15 21:26
Please respond to
xCAT Users Mailing list <[email protected]>


To
<[email protected]>, 
cc

Subject
Re: [xcat-user] dns error






Jing,

FYI, Here we are using rhels6.2 and not sles, sorry for the confusion

The number of hosts in my case is 
# wc -l /etc/hosts
2144 /etc/hosts

numreqs that I have been using
# grep numreqs /opt/xcat/lib/perl/xCAT_plugin/ddns.pm 
        my $numreqs = 268; # limit to 300 updates in a payload, something 
broke at 644 on a certain sample, choosing 300 for now
            $numreqs -= 1;
            if ($numreqs == 0) {
                $numreqs=268;
        if ($numreqs != 268) { #either no entries at all to begin with or 
a perfect multiple of 300

# ls -l /var/named/
total 320
drwxr-xr-x 5 root  root   4096 Nov 15 13:10 backup
-rw-r--r-- 1 named named 18687 Jan 15 12:44 db.10.0
-rw-r--r-- 1 named named 40617 Jan 15 12:33 db.10.0.jnl
-rw-rw---- 1 named named   124 Jan 15 12:33 db.10.1.0
-rw-rw---- 1 named named   124 Jan 15 12:33 db.<ext>.<ip>.<addr>.jnl
-rw-rw---- 1 named named   124 Jan 15 12:33 db.<ext>.<ip>.<addr>
-rw-r--r-- 1 named named 18711 Jan 15 12:45 db.172.16
-rw-r--r-- 1 named named 42838 Jan 15 12:33 db.172.16.jnl
-rw-r--r-- 1 named named 17533 Jan 15 12:44 db.172.17
-rw-r--r-- 1 named named 42551 Jan 15 12:33 db.172.17.jnl
-rw-r--r-- 1 named named 48243 Jan 15 12:44 db.<domainsnip>
-rw-r--r-- 1 named named 64591 Jan 15 12:33 db.<domainsnip>.jnl

regards, 

Arif Ali MBCS 
HPC Systems Architect 
OCF plc 

Tel: +44 (0)114 257 2200 
Mob: +44 (0)7970 148 122 
Fax: +44 (0)114 257 0022 
Web: www.ocf.co.uk 
Blog: blog.ocf.co.uk 
Twitter: @ocfplc 

Please note, any emails relating to an OCF Support request must always be 
sent to [email protected] for a ticket number to be generated or existing 
support ticket to be updated. Should this not be done then OCF cannot be 
held responsible for requests not dealt with in a timely manner. 

OCF plc is a company registered in England and Wales. Registered number 
4132533, VAT number GB 780 6803 14. Registered office address: OCF plc, 5 
Rotunda Business Centre, Thorncliffe Park, Chapeltown, Sheffield, S35 2PG. 


This message is private and confidential. If you have received this 
message in error, please notify us and remove it from your system. 
On 15/01/13 13:07, Jing CDL Sun wrote:
So what is the value for numreqs you are using? I found one comment in 
ddns.pm, it's - # limit to 300 updates in a payload, something broke at 
644 on a certain sample, choosing 300 for now. 

I remember that our system test has verified the case that there are more 
than 2k hosts in /etc/hosts, makedns -n can work though it takes some time 
to complete, but not sure if they were using SLES.. 

Besides, what's in /var/lib/named(ls -l /var/lib/named)? 

Thx. 
Jing. 




Arif Ali <[email protected]> 
2013/01/15 20:38 

Please respond to
xCAT Users Mailing list <[email protected]>



To
<[email protected]>, 
cc

Subject
Re: [xcat-user] dns error








Hi Jing, 

Below is the output for "XCATBYPASS=yes makedns -n". What I find (from my 
diagnosis) is that the domains are registered up until the multiple of 
numreqs (the variable I have been playing with in ddns.pm), and the last 
portion is when the  "error was NOTZONE" comes along.

I have snipped the domain name below as well

<snip>
Getting reverse zones, this may take several minutes in scaling cluster.
Completed getting reverse zones.
Stopping named: .                                          [  OK  ]
Updating zones.
Completed updating zones.
rndc: neither /etc/rndc.conf nor /etc/rndc.key was found
Command failed: service named status|grep running 2>&1. Error message: .

Starting named:                                            [  OK  ]
Starting named complete
Restarting named
Stopping named: .                                          [  OK  ]
Starting named:                                            [  OK  ]
Restarting named complete
Updating DNS records, this may take several minutes in scaling cluster.
Error: Failure encountered updating .<snip>., error was NOTZONE
Completed updating DNS records.
named has been enabled on boot.
DNS setup is completed


regards, 

Arif Ali MBCS 
HPC Systems Architect 
OCF plc 

Tel: +44 (0)114 257 2200 
Mob: +44 (0)7970 148 122 
Fax: +44 (0)114 257 0022 
Web: www.ocf.co.uk 
Blog: blog.ocf.co.uk 
Twitter: @ocfplc 

OCF plc is a company registered in England and Wales. Registered number 
4132533, VAT number GB 780 6803 14. Registered office address: OCF plc, 5 
Rotunda Business Centre, Thorncliffe Park, Chapeltown, Sheffield, S35 2PG. 


This message is private and confidential. If you have received this 
message in error, please notify us and remove it from your system. 
On 15/01/13 12:27, Jing CDL Sun wrote: 
Hi Arif, 

‘-’should not be the cause, the valid characters include a through z, 
numbers and the '-', but not '_'. ddns.pm has the code check for the valid 
hostname characters, so if the hostname is invalid, you will be able to 
see error messages in the makedns outupt. 

Are you still seeing the error of "Error: Failure encountered updating 
.bg., error was NOTZONE" when run makedns -n? 

You can try to run "XCATBYPASS=yes makedns -n", then see if there is any 
change in the output? if possible, post me the output. Thx. 

Jing. 




Arif Ali <[email protected]> 
2013/01/15 18:46 

Please respond to
xCAT Users Mailing list <[email protected]>



To
[email protected], 
cc

Subject
Re: [xcat-user] dns error










Hi list, 

I seem to be having the same problem at one of the customer sites

I have been trying to play with the numreqs value in the ddns.pm, but 
nothing seems to solve the problem.

We have approx > 2000 hosts in /etc/hosts, (The hostnames have - in the 
name, could this be a cause?)

I have now recently upgraded from 2.7.3 to 2.7.6, with no avail.

Any info on what may be the cause, I would appreciate this.

regards,
Arif

On 16/04/12 03:01, Jing CDL Sun wrote: 
Is it possible that you could provide: 

1. the content of /etc/hosts? 
2. tabdump site? 

Thx.



Best Regards,
-----------------------------
Sun Jing(孙靖)
IBM China Software Development Laboratory
Tel: (86-10) 82453625   E-mail: [email protected]
Address: Building 28, ZhongGuanCun Software Park,
       No.8, Dong Bei Wang West Road, Haidian District Beijing 100193, PRC

北京市海淀区东北旺西路8号中关村软件园28号楼
邮编: 100193

indi <[email protected]> 
2012-04-14 05:43 

Please respond to
xCAT Users Mailing list <[email protected]>



To
[email protected] 
cc

Subject
[xcat-user] dns error












Hi ALL! 

I got error making dns. 
My configuration is: 
sles10.2 ppc 
xcat 2.7 

error appeares when trying to run makedns -n 

Updating DNS records, this may take several minutes in scaling cluster. 
Error: Failure encountered updating .bg., error was NOTZONE 
Completed updating DNS records. 
named has been enabled on boot. 
DNS setup is completed 

/etc/resolv.conf 

domain bg 
search bg 
nameserver 172.21.0.5 

in that case i have reverse zones configured correctly, but direct 
contains only one record - mgmt(172.21.0.5) 

if i change resolve.conf 
domain bg 
search bg 
nameserver mgmt 

I have only mgmt zone in direct and reverse zones. 

Thank you for help in advance 
Igor
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user



------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2



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

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user


<<attachment: aali.vcf>>

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to