- Timestamp:
- 11/09/08 16:36:51 (2 months ago)
- Location:
- trunk/client/dns
- Files:
-
- 3 modified
-
src/EBox/DNS.pm.in (modified) (4 diffs)
-
src/EBox/Model/DomainTable.pm (modified) (3 diffs)
-
stubs/db.mas (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/dns/src/EBox/DNS.pm.in
r11209 r11595 219 219 # 220 220 # name - String the domain's name 221 # ipaddr - String the domain's ip address 221 222 # 222 223 sub domains … … 232 233 233 234 $domaindata->{'name'} = $row->valueByName('domain'); 235 $domaindata->{'ipaddr'} = $row->valueByName('ipaddr'); 234 236 235 237 push(@array, $domaindata); … … 453 455 # 454 456 # 'name': domain name 457 # 'ipaddr': domain ip address 455 458 # 'hosts': an array ref returned by <EBox::DNS::_hostnames> method. 456 459 # … … 463 466 my $row = $model->find(domain => $domain->{'name'}); 464 467 $domdata->{'name'} = $domain->{'name'}; 468 $domdata->{'ipaddr'} = $domain->{'ipaddr'}; 465 469 $domdata->{'hosts'} = $self->_hostnames( 466 470 $row->subModel('hostnames')->rows()); -
trunk/client/dns/src/EBox/Model/DomainTable.pm
r10319 r11595 15 15 16 16 # Class: 17 # 17 # 18 18 # EBox::DNS::Model::DomainTable 19 19 # 20 # This class inherits from <EBox::Model::DataTable> and represents the 21 # object table which basically contains domains names and a reference 22 # to a member <EBox::DNS::Model::HostnameTable> 20 # This class inherits from <EBox::Model::DataTable> and represents 21 # the object table which basically contains domains names, the IP 22 # address for the domain and a reference to a member 23 # <EBox::DNS::Model::HostnameTable> 23 24 # 24 #25 25 package EBox::DNS::Model::DomainTable; 26 26 … … 33 33 use EBox::Types::DomainName; 34 34 use EBox::Types::HasMany; 35 use EBox::Types::HostIP; 35 36 use EBox::Sudo; 36 37 … … 85 86 'backView' => '/ebox/DNS/View/DomainTable', 86 87 ), 88 new EBox::Types::HostIP 89 ( 90 'fieldName' => 'ipaddr', 91 'printableName' => __('IP Address'), 92 'size' => '20', 93 'optional' => 1, 94 'editable' => 1 95 ), 87 96 ); 88 97 -
trunk/client/dns/stubs/db.mas
r11269 r11595 7 7 8 8 name - String the domain's name 9 ipaddr - String the domain's ip address 9 10 hosts - Array ref containing hash refs with the following elements: 10 11 ip - String the IP address for that host … … 37 38 NS <% $nameserverHostname %>.<% $domain{'name'} %>. ;nameserver 38 39 ; 40 % if($domain{'ipaddr'}) { 41 A <% $domain{'ipaddr'} %> 42 % } 39 43 % unless (@hosts > 0 and (scalar(grep { $_->{'name'} eq $nameserverHostname } @hosts))) { 40 44 <% $nameserverHostname %> A 127.0.0.1
