Re: allow to insert own DNS and own DNS?

From: John Capo (jc@irbs.com)
Date: Sat Jul 01 2000 - 15:51:53 EDT


One way to do it:

Index: reg_system.cgi
===================================================================
RCS file: /usr/local/CVS/www/opensrs/cgi/reg_system.cgi,v
retrieving revision 1.6
diff -c -r1.6 reg_system.cgi
*** reg_system.cgi 2000/06/04 23:07:45 1.6
--- reg_system.cgi 2000/06/04 23:21:24
***************
*** 1371,1380 ****
          $fqdns{$num} = $data->{$key};
      }
  
! my $count = 1;
! foreach $num (sort keys %fqdns) {
! $nameservers{"fqdn$count"} = $fqdns{$num};
! $count++;
      }
          
  
--- 1371,1388 ----
          $fqdns{$num} = $data->{$key};
      }
  
! if ($num == 0)
! {
! $nameservers{"fqdn1"} = $REG_SYSTEM{ns1};
! $nameservers{"fqdn2"} = $REG_SYSTEM{ns2};
! }
! else
! {
! my $count = 1;
! foreach $num (sort keys %fqdns) {
! $nameservers{"fqdn$count"} = $fqdns{$num};
! $count++;
! }
      }
          
and add appropriate entries to etc/OpenSrc.conf:

        ns1 => "ns1.bubbasplace.com",
        ns2 => "ns2.bubbasplace.com",

If the registration is based on an existing profile, the name
servers from the existing domain will be displayed. A new registration
will display the name servers defined above.

No warranty provided, may kill your dog, patch instructions not included.

John Capo Embedded Hardware/Software Design
IRBS Engineering Unix/Internet Consulting



This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:35:41 EDT