You are not logged in.
Pages: 1
Hi
Debian has a host command to return IP address. I couldnt locate the host command in arch, or is it available in some group package?
Thankyou
Last edited by makh (2018-09-27 02:06:12)
OS: Arch &/ Debian
System: LENOVO ThinkPad E14
Desktop: Xfce
Offline
Pacman#Querying_package_databases
# pacman -Fy
$ pacman -Fo /usr/bin/host
There is also `ip a`
Edit:
Deleted reference to `ip -a` thought you wanted the ip address of the current host.
Last edited by loqs (2018-09-26 23:47:53)
Offline
You might also prefer `getent hosts` or `getent ahosts` which is provided by glibc.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thankyou
@Trilby: I simply wanted to get the IP address of a machine in local network. But I will try to understand this command. Thankyou
OS: Arch &/ Debian
System: LENOVO ThinkPad E14
Desktop: Xfce
Offline
Pages: 1