mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-23 21:27:00 +00:00
add commands for #Networking
This commit is contained in:
parent
6479b26656
commit
80c5012f38
11
README.md
11
README.md
@ -2451,6 +2451,11 @@ dig +short www.example.com
|
||||
host www.example.com
|
||||
```
|
||||
|
||||
##### Check public IP address
|
||||
```bash
|
||||
curl http://checkip.amazonaws.com
|
||||
```
|
||||
|
||||
##### Get DNS TXT record a of domain
|
||||
```bash
|
||||
dig -t txt www.example.com
|
||||
@ -2531,7 +2536,7 @@ whois google.com
|
||||
openssl s_client -showcerts -connect www.example.com:443
|
||||
```
|
||||
|
||||
##### Display IP address
|
||||
##### Display network interfaces and their associated IP addresses
|
||||
```bash
|
||||
ip a
|
||||
```
|
||||
@ -2591,6 +2596,10 @@ curl -I http://example.com/
|
||||
# Accept-Ranges: bytes
|
||||
# Vary: Accept-Encoding
|
||||
```
|
||||
##### Find out the time spent between request and response
|
||||
```
|
||||
curl -v -o /dev/null -s -w 'Total: %{time_total}s\n' google.com
|
||||
```
|
||||
|
||||
##### Find out the http status code of a URL
|
||||
```bash
|
||||
|
Loading…
Reference in New Issue
Block a user