mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(snippets): add name resolving commands
This commit is contained in:
20
snippets/resolve ip addresses and dns names.fish
Normal file
20
snippets/resolve ip addresses and dns names.fish
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
nslookup 'www.google.com'
|
||||||
|
nslookup 'grafana.dev.ecs.internal' '172.31.0.2'
|
||||||
|
nslookup '172.16.43.212' '172.31.0.2'
|
||||||
|
|
||||||
|
host 'pi.hole'
|
||||||
|
host -t 'A' 'ifconfig.me'
|
||||||
|
host -a '172.16.43.212' '172.31.0.2'
|
||||||
|
|
||||||
|
dig 'google.com'
|
||||||
|
dig 'google.com' 'A'
|
||||||
|
dig -x '172.217.14.238'
|
||||||
|
dig '@8.8.8.8' 'google.com'
|
||||||
|
dig 'google.com' '+short'
|
||||||
|
|
||||||
|
resolvectl query 'archlinux.org'
|
||||||
|
|
||||||
|
dscacheutil -q 'host' -a 'name' '192.168.1.35'
|
||||||
|
dscacheutil -q 'host' -a 'name' 'gitlab.lan'
|
||||||
Reference in New Issue
Block a user