The commands dig
and host
should be what you’re looking for 😉
On *nix systems, you can use this command:
dig -x [address]
Alternatively, you can add +short
at the end of the dig
command to output only the DNS result.
There’s also nslookup
on both *nix and Windows systems for reverse DNS requests.
Related Posts:
- What’s the command-line utility in Windows to do a reverse DNS look-up?
- How to get the url of the current svn repo?
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- Trying to use bash on Windows and got no installed distributions message
- Merge / convert multiple PDF files into one PDF
- scp from Linux to Windows
- Terminal Multiplexer for Microsoft Windows – Installers for GNU Screen or tmux
- How to enable Bash in Windows 10 developer preview?
- Linux command to inspect TXT records of a domain [closed]
- Setting the hostname: FQDN or short name?
- How to cd into a directory with this name “-2” (starting with the hyphen)?
- How do I prevent accidental rm -rf /*?
- How do I find the UUID of a filesystem
- Force dig to resolve without using cache
- Find out symbolic link target via command line
- What useful things can one add to one’s .bashrc? [closed]
- How to remove empty/blank lines from a file in Unix (including spaces)?
- How to display certain lines from a text file in Linux?
- What is this IP address: 169.254.169.254?
- How to determine the hostname from an IP address in a Windows network?
- swap partition vs file for performance?
- How to sort ps output by process start time?
- Bash: No such file or directory?
- What’s a .sh file?
- How to create a file in Linux from terminal window? [closed]
- How can I symlink a file in Linux? [closed]
- Kill detached screen session [closed]
- How to unmount a busy device
- How to unmount a busy device
- No space left on device
- How to perform grep operation on all files in a directory?
- Amazon Linux: apt-get: command not found
- Pass a password to ssh in pure bash
- How can I exclude directories from grep -R?
- How to set proxy for wget?
- How to change permissions for a folder and its subfolders/files in one step
- Docker can’t connect to docker daemon
- Need a good hex editor for Linux
- Pseudo-terminal will not be allocated because stdin is not a terminal
- Directory Inode vs Regular File Inode
- How to cat <
> a file containing code? - Diff command along with Grep gives “Binary file (standard input) matches”
- can’t remove python pip
- How would I get a cron job to run every 30 minutes?
- How to automatically redirect HTTP to HTTPS on Apache servers?
- What is the difference between “#!/usr/bin/env bash” and “#!/usr/bin/bash”?
- Is there a “goto” statement in bash?
- Post request with Wget?
- Read and write to binary files in C?
- Telnet [Unable to connect to remote host: Connection refused]
- Is there an alternative sleep function in C to milliseconds?
- Gedit command not working in kali linux terminal
- Syntax error near unexpected token ‘then’
- Curl : connection refused
- How to install Android SDK on Ubuntu?
- C fopen vs open
- How can I use grep to show just filenames on Linux?
- Bash script prints “Command Not Found” on empty lines
- Why does “docker attach” hang?
- Bash export command
- How to edit gitignore file
- Retrieve last 100 lines logs
- What are various options / arguments for “./configure” in Linux
- Adding a new entry to the PATH variable in ZSH
- CronJob not running
- Delete .DS_STORE files in current folder and all subfolders from command line on Mac
- Can’t upload media to my Raspberry Pi WordPress server
- My WordPress is giving me an 403 error when saving post/draft with specific words
- How to run a server on port 80 as a normal user on Linux?
- Copying a large directory tree locally? cp or rsync?
- Check if port is open or closed on a Linux server?
- Moving an already-running process to Screen
- When does `cron.daily` run?
- Permission denied (publickey). SSH from local Ubuntu to Amazon EC2 server
- How to run a command multiple times, using bash shell?
- LVM dangers and caveats
- How to reconnect to a disconnected ssh session
- Should I quit using Ifconfig?
- How to know from which yum repository a package has been installed?
- SSL Certificate Location on UNIX/Linux
- What is “-bash: !”: event not found”
- tar – Remove leading directory components on extraction
- Keeping a linux process running after I logout
- How to list Apache enabled modules?
- How to forcibly close a socket in TIME_WAIT?
- How to check if an RSA public / private key pair match
- Colors in bash after piping through less?
- How can I monitor hard disk load on Linux?
- Can you have more than one ~/.ssh/config file?
- How to force nginx to resolve DNS (of a dynamic hostname) everytime when doing proxy_pass?
- GPG does not have enough entropy
- Why don’t EC2 ubuntu images have swap?
- SSHFS mount that survives disconnect
- Temporarily ignore my `~/.ssh/known_hosts` file?
- How to get TX/RX bytes without ifconfig?
- Curl: disable certificate verification
- How to apply a filter to real time output of `tail -f `?
- Practical maximum open file descriptors (ulimit -n) for a high volume system
- How to handle relative urls correctly with a reverse proxy
- Where’s the conventional place to store git repositories in a linux file system tree?