diff options
author | SADA Kenji <sada@FreeBSD.org> | 2000-04-08 17:55:02 +0000 |
---|---|---|
committer | SADA Kenji <sada@FreeBSD.org> | 2000-04-08 17:55:02 +0000 |
commit | 32a9b4c6aceb5758df2e10841f7fad20fd63853d (patch) | |
tree | dfd256bf37a2300229688c75f244e516f069ef69 /dns | |
parent | Update to 4.5.44. (diff) |
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>
Notes
Notes:
svn path=/head/; revision=27412
Diffstat (limited to 'dns')
-rw-r--r-- | dns/h2n/files/Notes.FreeBSD | 5 | ||||
-rw-r--r-- | dns/h2n/files/patch-aa | 31 |
2 files changed, 36 insertions, 0 deletions
diff --git a/dns/h2n/files/Notes.FreeBSD b/dns/h2n/files/Notes.FreeBSD new file mode 100644 index 000000000000..c1db025297ad --- /dev/null +++ b/dns/h2n/files/Notes.FreeBSD @@ -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. diff --git a/dns/h2n/files/patch-aa b/dns/h2n/files/patch-aa new file mode 100644 index 000000000000..98e5c79874ae --- /dev/null +++ b/dns/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]*$/ |