summaryrefslogtreecommitdiffstats
path: root/net/h2n/files/patch-aa
diff options
context:
space:
mode:
authorsada <sada@FreeBSD.org>2000-04-08 17:55:02 +0000
committersada <sada@FreeBSD.org>2000-04-08 17:55:02 +0000
commitffd344229a73d7d8be7ef8167e6fe55e6632109a (patch)
tree905794a1be697825be12522ba2b3541492392bd0 /net/h2n/files/patch-aa
parent3dcd79cc2da3b0e77480ca9c79c67cafcf9e8297 (diff)
downloadFreeBSD-ports-ffd344229a73d7d8be7ef8167e6fe55e6632109a.zip
FreeBSD-ports-ffd344229a73d7d8be7ef8167e6fe55e6632109a.tar.gz
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>
Diffstat (limited to 'net/h2n/files/patch-aa')
-rw-r--r--net/h2n/files/patch-aa31
1 files changed, 31 insertions, 0 deletions
diff --git a/net/h2n/files/patch-aa b/net/h2n/files/patch-aa
new file mode 100644
index 0000000..98e5c79
--- /dev/null
+++ b/net/h2n/files/patch-aa
@@ -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]*$/
OpenPOWER on IntegriCloud