mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
Added an option: -a <address> .
It allows you to set the address of a domain in the SOA record. It will adds a "IN A <address>" line to the SOA. This is needed for sites that want a default address for a partial name - say just yahoo.com instead of forcing users to always type www.yahoo.com. Submitted by: "David Peterson" <chief@mail.idrive.com>
This commit is contained in:
parent
e1913d1aee
commit
32a9b4c6ac
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=27412
5
dns/h2n/files/Notes.FreeBSD
Normal file
5
dns/h2n/files/Notes.FreeBSD
Normal file
@ -0,0 +1,5 @@
|
||||
- Added an option: -a <address> .
|
||||
It allows you to set the address of a domain in the SOA record.
|
||||
It will adds a "IN A <address>" line to the SOA.
|
||||
This is needed for sites that want a default address for a partial name -
|
||||
say just yahoo.com instead of forcing users to always type www.yahoo.com.
|
31
dns/h2n/files/patch-aa
Normal file
31
dns/h2n/files/patch-aa
Normal file
@ -0,0 +1,31 @@
|
||||
--- h2n.orig Sun Apr 9 02:29:50 2000
|
||||
+++ h2n Sun Apr 9 02:32:19 2000
|
||||
@@ -20,6 +20,7 @@
|
||||
$dontdodomains = 0;
|
||||
$Bootfile = "./named.boot";
|
||||
$Domain = "";
|
||||
+$DomainAddress = "";
|
||||
$Hostfile = "/etc/hosts";
|
||||
$Commentfile = "";
|
||||
$Commentfileread = 0;
|
||||
@@ -395,6 +396,10 @@
|
||||
foreach $s (@Servers) {
|
||||
print $file " IN NS $s\n";
|
||||
}
|
||||
+ if ($DomainAddress ne "") {
|
||||
+ print $file " IN A $DomainAddress";
|
||||
+ }
|
||||
+
|
||||
print $file "\n";
|
||||
}
|
||||
|
||||
@@ -628,6 +633,9 @@
|
||||
|
||||
} elsif ($option eq "-h"){
|
||||
$Host = $args[++$i];
|
||||
+
|
||||
+ } elsif ($option eq "-a"){
|
||||
+ $DomainAddress = $args[++$i];
|
||||
|
||||
} elsif ($option eq "-o"){
|
||||
if ( $args[++$i] !~ /^[:\d]*$/
|
5
net/h2n/files/Notes.FreeBSD
Normal file
5
net/h2n/files/Notes.FreeBSD
Normal file
@ -0,0 +1,5 @@
|
||||
- Added an option: -a <address> .
|
||||
It allows you to set the address of a domain in the SOA record.
|
||||
It will adds a "IN A <address>" line to the SOA.
|
||||
This is needed for sites that want a default address for a partial name -
|
||||
say just yahoo.com instead of forcing users to always type www.yahoo.com.
|
31
net/h2n/files/patch-aa
Normal file
31
net/h2n/files/patch-aa
Normal file
@ -0,0 +1,31 @@
|
||||
--- h2n.orig Sun Apr 9 02:29:50 2000
|
||||
+++ h2n Sun Apr 9 02:32:19 2000
|
||||
@@ -20,6 +20,7 @@
|
||||
$dontdodomains = 0;
|
||||
$Bootfile = "./named.boot";
|
||||
$Domain = "";
|
||||
+$DomainAddress = "";
|
||||
$Hostfile = "/etc/hosts";
|
||||
$Commentfile = "";
|
||||
$Commentfileread = 0;
|
||||
@@ -395,6 +396,10 @@
|
||||
foreach $s (@Servers) {
|
||||
print $file " IN NS $s\n";
|
||||
}
|
||||
+ if ($DomainAddress ne "") {
|
||||
+ print $file " IN A $DomainAddress";
|
||||
+ }
|
||||
+
|
||||
print $file "\n";
|
||||
}
|
||||
|
||||
@@ -628,6 +633,9 @@
|
||||
|
||||
} elsif ($option eq "-h"){
|
||||
$Host = $args[++$i];
|
||||
+
|
||||
+ } elsif ($option eq "-a"){
|
||||
+ $DomainAddress = $args[++$i];
|
||||
|
||||
} elsif ($option eq "-o"){
|
||||
if ( $args[++$i] !~ /^[:\d]*$/
|
Loading…
x
Reference in New Issue
Block a user