several address records will be displayed in the module
dynbind in a wrong way:
(/dynbind/edit_recs.cgi?index=5&view=&type=A)
----------------------------------------------------
|12H.labsg.swisscom.com. | Default | 10.44.252.129 |
----------------------------------------------------
In the bind8 module it will displayed correct:
(/bind8/edit_recs.cgi?index=5&view=&type=A)
----------------------------------------------
|SEP00053281D07A...| 43200 | 10.44.252.129 |
----------------------------------------------
This is the corresponding entry in the zone file
-------------------------------------------------------
SEP00053281CA02 43200 IN
TXT "31aa2bf4d8f307ef91dc9cf7c9906276d5" ;Cl=3
43200 IN A 10.44.252.128 ;Cl=3
-------------------------------------------------------
Logged In: YES
user_id=665381
Yeah it seems to be showing the TTL value for some reason.
I've seen this happen here with non-TXT records. I'll look
at it.
Logged In: YES
user_id=129364
This non-core module is now being worked on by some other
people, so hopefully this (and other) problems will be fixed
soon ..
Logged In: YES
user_id=665381
The bug is in handling the nslookup output. The new module
will use dig instead so the coding will be different.
If anyone needs a fix for the dynbind - the problem is the
code removes leading spaces - then edit
dynbind/records-lib.pl to:
==============================
sub get_zone_file
{
local($file, $lnum, $line, $t, @tok, @lnum, @coms,
$i, @rv, $origin, $num, $j, @inc, @oset, $comment);
$origin = $_[1];
$file = &absolute_path($_[0]);
#open(FILE, $config{'chroot'}.$file);
#open(FILE, "/usr/bin/dig \@a.b.com $origin -t AXFR|");
#open(FILE, "echo \"server a.b.com\nls -d
$origin\n\"|/usr/bin/nslookup|egrep -
v \"Using|Specif|Default Name S|Address:|The reset command
will|>\"|");
open(FILE, "echo \"ls -d
$origin\n\"|$config{'nslookup_path'}|egrep -v \"Using|
Specif|Default Name S|Default Server|Address:|The reset
command will|>\"|");
$lnum = 0;
while($line = <FILE>) {
# $line =~ s/ SOA / IN SOA /g;
# $line =~ s/ NS / IN NS /g;
# $line =~ s/ A / IN A /g;
# $line =~ s/ CNAME / IN CNAME /g;
# $line =~ s/ SRV / IN SRV /g;
# $line =~ s/ HINFO / IN HINFO /g;
# $line =~ s/ PTR / IN PTR /g;
# $line =~ s/^\s*//g;
$line =~ s/\s*$//g;
# $line =~
s/(^.*(PTR|CNAME|MX|NS|SRV).*[a-zA-Z]*$)/$1\./ig;
========================================
However, NOTE - older versions of nslookup, but still within
version 8 BIND, may cause this change to break. I can't test
that because we have no bind 8 here.
Logged In: YES
user_id=277100
It seems to work, thank you!