Socket
Socket
Sign inDemoInstall

dig-csv

Package Overview
Dependencies
7
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dig-csv

Append Hostname Info to CSV with IP Address Columns


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

dig-csv

Command Line Util for Dig'ing IPs in CSV Files

Requires

  • node (Installation instructions available here)
  • dig available in system path

Install

npm install -g dig-csv

Usage

dig-csv <csv-header> <in-csv-file-path> [<out-csv-file-path>]
  • csv-headers: headers in csv where IP Address are located
  • in-csv-file-path: path to csv file that contains columns with IP Addresses
  • out-csv-file-path: (optional) specify file path place modified file. If this parameter is ommitted, output will be to console.

Example Use:

dig-csv source_ip,dest_ip mycsvfile1.csv out.csv
dig-csv ipAddress mycsvfile1.csv

Example Input CSV

src_ip,dest_ip,transport,dest_port
192.168.10.54,192.168.10.1,udp,53
192.168.10.1,192.168.10.54,udp,53
192.168.10.80,192.168.10.1,udp,53

Example Output CSV

src_ip,dest_ip,transport,dest_port,src_ip_host,dest_ip_host
192.168.10.54,192.168.10.1,udp,53,test1.domain.com,router.domain.com
192.168.10.1,192.168.10.54,udp,53,router.domain.com,test1.domain.com
192.168.10.80,192.168.10.1,udp,53,test2.domain.com,router.domain.com

FAQs

Last updated on 23 Dec 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc