rex test_resolv.rex -o lexer.rb
ruby resolv_parse.rb
---
nameservers:
- 192.168.1.254
- 192.168.1.253
domain: local.tld
search:
- a.local.tld
- b.local.tld
- local.tld
options:
- rotate
- timeout:1
- attempts:2
{
"nameservers": ["192.168.1.254","192.168.1.253"],
"domain": "local.tld",
"search": ["a.local.tld","b.local.tld","local.tld"],
"options": ["rotate","timeout:1","attempts:2"]
}
{
:nameservers => ["192.168.1.254", "192.168.1.253"],
:domain => "local.tld",
:search => ["a.local.tld", "b.local.tld", "local.tld"],
:options => ["rotate", "timeout:1", "attempts:2"]
}