Skip to content

Instantly share code, notes, and snippets.

@ysasaki
Last active December 19, 2015 04:39
Show Gist options
  • Save ysasaki/5898896 to your computer and use it in GitHub Desktop.
Save ysasaki/5898896 to your computer and use it in GitHub Desktop.
@に対応するためbindtoroute53.plに当てるuzulla patch。Licenseは多分uzullaさんにあります ref: http://uzulla.hateblo.jp/entry/2013/05/15/010328
--- a/bindtoroute53.pl 2013-07-01 14:48:27.000000000 +0900
+++ b/bindtoroute53.pl 2013-07-01 14:48:33.000000000 +0900
@@ -174,12 +174,16 @@
# name is empty string or @ without $ORIGIN
$name = $origin;
}
- if($name !~ /$origin\.?$/) {
- if($name =~ /\.$/ || $dig) {
- print STDERR "Ignoring '" . $zonerr->string . "', name must be part of zone.\n";
- next;
+ if($name =~ /^\.$/){
+ $name = $origin;
+ }else{
+ if($name !~ /$origin\.?$/) {
+ if($name =~ /\.$/ || $dig) {
+ print STDERR "Ignoring '" . $zonerr->string . "', name must be part of zone.\n";
+ next;
+ }
+ $name .= ".$origin.";
}
- $name .= ".$origin.";
}
if($name !~ /\.$/) {
$name .= ".";
@ysasaki
Copy link
Author

ysasaki commented Jul 2, 2013

L8の正規表現を修正

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment