Convert site name to IP address in Logstash

Not for me. not that i could tell. Maybe i just didnt have the config right. I've tried different things to include just passing the name via the stdin input. Below is an example of one of the things l tried. I get no error and nothing is added to the output.

input { stdin { } }

filter {
mutate {
strip => "message"
}
dns {
reverse => [ "source_host", "message" ]

}
}

output {

stdout { codec => rubydebug }
}