goplayground icon indicating copy to clipboard operation
goplayground copied to clipboard

Save domain,ip instead of domain,ip ip ip ip for domains with multiple IPs

Open webaddicto opened this issue 2 years ago • 0 comments

Hello @majek

I was wondering if you can add a parameter so that if needed we can save the data as:

google.com,1.2.3.4 google.com,2.3.4.5 google.com,3.4.5.6 yandex.com,1.1.1.1 ...

Instead of domain,ip ip ip ip.. for domains that have multiple IP addresses:

google.com,1.2.3.4 2.3.4.5 3.4.5.6 yandex.com,1.1.1.1 ...

Could be something line:

cat /home/test/domains.txt | resolve -server="8.8.8.8:53" -output_type="splitted"

Let me know your thoughts.

Thank you.

webaddicto avatar Nov 16 '21 19:11 webaddicto