Skip to content
README.md 2.56 KiB
Newer Older
Dimitri Enns's avatar
Dimitri Enns committed
# digx
digx - bash function to dig out more details about a domain.

Dimitri Enns's avatar
Dimitri Enns committed
## apps
Please make sure you have installed:
- [x] dig
- [x] whois
- [x] awk
- [x] xargs
- [x] wc
Dimitri Enns's avatar
Dimitri Enns committed
- [x] idn2  
most of these should be installed by default. It depends with your distro.
Dimitri Enns's avatar
Dimitri Enns committed

## BashFunction
Just open your `.bashrc` or `.bash_functions` file and paste the content from [digx_function](https://git.niih.de/de/digx/-/blob/main/digx_function) in it.
Reload your bash settings (`source .bashrc` shoud do it or just log out and log in), and then you can call it using `digx domain.tld`

## Standalone Script
You can also place the [digx.sh](https://git.niih.de/de/digx/-/blob/main/digx.sh) file in /usr/local/sbin/ on you machine (maybe need to make it executatable too) and just call the script using `digx.sh domain.tld`
Dimitri Enns's avatar
Dimitri Enns committed

Dimitri Enns's avatar
Dimitri Enns committed
## Usage:
`digx domain.tld`

## Example
```bash
digx google.com
 === google.com ===
  IPv4: 172.217.16.78
      PTR: ham11s01-in-f14.1e100.net.
      PTR: par03s13-in-f78.1e100.net.
  IPv6: 2a00:1450:4005:803::200e
      PTR: ham02s15-in-x0e.1e100.net.
  MX: smtp.google.com.
    IP: 108.177.126.27
      PTR: ej-in-f27.1e100.net.
    IP: 108.177.126.26
      PTR: ej-in-f26.1e100.net.
    IP: 108.177.127.26
      PTR: el-in-f26.1e100.net.
    IP: 108.177.127.27
      PTR: el-in-f27.1e100.net.
    IP: 172.217.218.27
      PTR: en-in-f27.1e100.net.
 ---
  TXT: "webexdomainverification.8YX6G=6e6922db-e3e6-4a36-904e-a805c28087fa"
  TXT: "facebook-domain-verification=22rm551cu4k0ab0bxsw536tlds4h95"
  TXT: "atlassian-domain-verification=5YjTmWmjI92ewqkx2oXmBaD60Td9zWon9r6eakvHX6B77zzkFQto8PQ9QsKnbf4I"
  TXT: "google-site-verification=wD8N7i1JTNTkezJ49swvWW48f8_9xveREV4oB-0Hf5o"
  TXT: "docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e"
  TXT: "v=spf1 include:_spf.google.com ~all"
  TXT: "MS=E4A68B9AB2BB9670BCE15412F62916164C0B20BB"
  TXT: "globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8="
  TXT: "docusign=1b0a6754-49b1-4db5-8540-d2c12664b289"
  TXT: "google-site-verification=TV9-DBe4R80X4v0M4U_bd_J9cpOJM0nikft0jAgjmsQ"
  TXT: "apple-domain-verification=30afIBcvSuDV2PLX"
 ---
  NS: ns1.google.com.
  NS: ns4.google.com.
  NS: ns2.google.com.
  NS: ns3.google.com.
 === www.google.com ===
  IPv4: 172.217.16.68
      PTR: ham11s01-in-f4.1e100.net.
      PTR: par03s13-in-f68.1e100.net.
  IPv6: 2a00:1450:4005:800::2004
      PTR: ham11s01-in-x04.1e100.net.
```

Dimitri Enns's avatar
Dimitri Enns committed
## Screnshots
![screenshot_25-06-2022_15-46-16](/uploads/ad058c0325ab2c21818e33be84094e97/screenshot_25-06-2022_15-46-16.png)
![screenshot_25-06-2022_15-46-28](/uploads/58aee21c442999d9e8223e695587fbf2/screenshot_25-06-2022_15-46-28.png)