set_dns_record.pl 576 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/perl
  2. #
  3. # Copyright (C) Roman Dmitiriev, rnd@rajven.ru
  4. #
  5. use utf8;
  6. use warnings;
  7. use Encode;
  8. use open qw(:std :encoding(UTF-8));
  9. no warnings 'utf8';
  10. use English;
  11. use base;
  12. use FindBin '$Bin';
  13. use lib "/opt/Eye/scripts";
  14. use strict;
  15. use DBI;
  16. use Time::Local;
  17. use Net::Patricia;
  18. use NetAddr::IP;
  19. use Data::Dumper;
  20. use eyelib::config;
  21. use eyelib::main;
  22. use eyelib::database;
  23. use eyelib::logconfig;
  24. use eyelib::common;
  25. use eyelib::net_utils;
  26. use File::Basename;
  27. use File::Path;
  28. exit if (!$ARGV[0]);
  29. my $auth_id = $ARGV[0];
  30. update_dns_record($dbh,$auth_id);
  31. exit;