Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-29, 12:50:40

Author Topic: DMARC txt records does not work properly ?  (Read 15546 times)

0 Members and 2 Guests are viewing this topic.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: DMARC txt records does not work properly ?
« Reply #30 on: 2015-04-26, 22:55:08 »
Wrong input. It's must like 'sh /script/fixdnsremoverecord --ttype=txt --hostname=dmarc'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #31 on: 2015-04-27, 12:12:34 »
My fixdnsremoverecord is blank...

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #32 on: 2015-04-27, 12:13:59 »
Restored and it worked !

Quote
sh /script/fixdnsremoverecord --ttype=txt --hostname=__base__
Remove DNS record for '__base__' hostname in 'txt' ttype
- For 'tester.pl' ('admin') at 'localhost'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'
-- remove '__base__' hostname in 'txt'

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #33 on: 2015-04-27, 12:25:09 »
It's very slow (1-2 domains per minute) but it works ;) Removing in progress...

I will have to rebuild it anyway, because it also removes my SPF records.
« Last Edit: 2015-04-27, 12:41:44 by Spacedust »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: DMARC txt records does not work properly ?
« Reply #34 on: 2015-04-27, 12:42:31 »
It's slow but it works ;) Removing in progress...

I will have to rebuild it anyway, because it also removes my SPF records.
Yes, because remove with 2 variables. You are lucky because all default 'txt record' (spf, dkim, dmarc and domainkeys) not insert directly to dns setting.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #35 on: 2015-04-27, 14:06:50 »
Sometimes it gets faster, then it's about 3-5 domains per minute. I'm leaving this on "screen" ;)

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #36 on: 2015-04-28, 12:09:11 »
I have to restart my Kloxo because of new SSL cert and it stopped on letter "B" and not moving.

How to resolve this ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: DMARC txt records does not work properly ?
« Reply #37 on: 2015-04-28, 12:19:46 »
Some users tell that nginx and hiawatha (that mean including their proxy) have a problem with ssl from comodo. I don't know what's a problem is.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #38 on: 2015-04-28, 12:41:44 »
Some users tell that nginx and hiawatha (that mean including their proxy) have a problem with ssl from comodo. I don't know what's a problem is.

No troubles with SSL. I mean your fixdnsremoverecord is not working properly. It's way too slow with many domains. It will take ages to complete in master-slave environment where DNS is also on slave.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: DMARC txt records does not work properly ?
« Reply #39 on: 2015-04-28, 13:00:22 »
Fixdnsremoverecord just remove record from dns table of kloxo database and don't care for master or slave.

After remove need fixdns dan restart-dns.

Yes, this script is slow because reading object instead read database directly where object tend to more need process and memory.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #40 on: 2015-04-28, 14:58:29 »
Fixdnsremoverecord just remove record from dns table of kloxo database and don't care for master or slave.

After remove need fixdns dan restart-dns.

Yes, this script is slow because reading object instead read database directly where object tend to more need process and memory.

Now even reloading DNS template takes ages to complete. It wasn't that slow before !

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #41 on: 2015-04-28, 17:44:44 »
After upgrade to latest Kloxo-MR. It stopped working again:

Quote
sh /script/fixdnsremoverecord --ttype=txt --hostname=__base__
Remove DNS record for '' key in '' type
- For 'infotryb.pl' domain ('adi2577' client) at 'localhost' server
-- NO exists of '' key in '' type

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: DMARC txt records does not work properly ?
« Reply #42 on: 2015-04-28, 18:00:19 »
change parameter, from 'hostname' to 'key' and 'ttype' to 'type'. Try execute 'sh /script/fixdnsremoverecord' and the you see what's you want.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #43 on: 2015-04-28, 18:04:54 »
change parameter, from 'hostname' to 'key' and 'ttype' to 'type'. Try execute 'sh /script/fixdnsremoverecord' and the you see what's you want.

It works again, but ultra slow. Can we skip clients which are already fixed ? Maybe add --client switch ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: DMARC txt records does not work properly ?
« Reply #44 on: 2015-04-28, 18:18:05 »
Try replace fixdnsremoverecord.php with:
Code: [Select]
<?php 

include_once "lib/html/include.php"

initProgram('admin');

$login->loadAllObjects('client');
$list $login->getList('client');

$par parse_opt($argv);

if (isset(
$par['type'])) {
$ttype strtolower($par['type']);
}

if (isset(
$par['key'])) {
$hostname strtolower($par['key']);
}

$client = (isset($list['client'])) ? $list['client'] : null;
$clist = array();

$nolog false;

log_cleanup("Remove DNS record for '{$hostname}' key in '{$ttype}' type"$nolog);

foreach(
$list as $c) {
if ($client) {
$ca explode(","$client);

if (!in_array($c->nname$ca)) { continue; }
}

$dlist $c->getList('domain');

foreach($dlist as $l) {
$dns $l->getObject('dns');
$dns->setUpdateSubaction('full_update');

print("- For '{$dns->nname}' domain ('{$c->nname}' client) at '{$c->syncserver}' server\n");

$removed false;

foreach($dns->dns_record_a as $drec) {
if (($drec->ttype === $ttype) && ($drec->hostname === $hostname)) {
print("-- remove '{$drec->hostname}' key in '{$drec->ttype}' type\n");
$removed true;
} else {
$x[] = $drec;
}
}

if ($removed === false) {
print("-- NO exists of '{$hostname}' key in '{$ttype}' type\n");
}

$dns->dns_record_a $x;

$dns->was();
}
}


You can set like '--client=clientA,clientB'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.028 seconds with 21 queries.

web stats analysis