Hey i tried to resolve a hostname in to a DNS.
My Input data Looks like this:
> {
> "query_status": "ok",
> "urls": [
> {
> "id": "223622",
> "urlhaus_reference": "https:\/\/urlhaus.abuse.ch\/url\/223622\/",
> "url": "http:\/\/45.61.49.78\/razor\/r4z0r.mips",
> "url_status": "offline",
> "host": "45.61.49.78",
> "date_added": "2019-08-10 09:02:05 UTC",
> "threat": "malware_download",
> "blacklists": {
> "gsb": "not listed",
> "spamhaus_dbl": "not listed",
> "surbl": "not listed"
> },
> "reporter": "zbetcheckin",
> "larted": "true",
> "tags": [
> "elf"
> ]
> },
> {
> "id": "223621",
> "urlhaus_reference": "https:\/\/urlhaus.abuse.ch\/url\/223621\/",
> "url": "http:\/\/45.61.49.78\/razor\/r4z0r.sh4",
> "url_status": "offline",
> "host": "45.61.49.78",
> "date_added": "2019-08-10 09:02:03 UTC",
> "threat": "malware_download",
> "blacklists": {
> "gsb": "not listed",
> "spamhaus_dbl": "not listed",
> "surbl": "not listed"
> },
> "reporter": "zbetcheckin",
> "larted": "true",
> "tags": [
> "elf",
> "mirai"
> ]
> }
> ]
> }
and my DNS filter.
dns
{
resolve => ["[urls][host]"]
action => "replace"
}
So what i want is to replace all Host names with a IP with the DNS Filter.
For Example: "host" : "eBay.com" => "host" : "IP of the Host"
I dont get a error message or whatever it just dont resolve all hosts.
Maybe some of you know why not.
thank you