- or download this
#!/bin/sh
curl https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
+|grep '^0\.0\.0\.0' | awk '{print "local-zone: \""$2"\" redirect\nloc
+al-data: \""$2" A 0.0.0.0\""}' > ads.conf
- or download this
local-zone: "apps.id.net" redirect
local-data: "apps.id.net A 0.0.0.0"
- or download this
#!/usr/bin/perl
use strict;
...
}
}
close $file;
- or download this
#!/usr/bin/perl
use strict;
...
if ($_ =~ /^\Q0.0.0.0\E (.*)$/){
print $file "local-zone: \"" . $1 . "\" redirect\nloca
+l-data: \"" . $1 . " A 0.0.0.0\"\n";
}
- or download this
#!/usr/bin/perl
use strict;
...
print $file "local-zone: \"" . $3 . "\" redirect\nlocal-data:
+\"" . $3 . " A 0.0.0.0\"\n";
}
close $file;