You are not logged in.

#1 2018-09-26 23:42:13

makh
Member
Registered: 2011-10-10
Posts: 305

[SOLVED] Host command

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

#2 2018-09-26 23:46:19

loqs
Member
Registered: 2014-03-06
Posts: 18,014

Re: [SOLVED] Host command

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

#3 2018-09-27 00:53:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED] Host command

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

#4 2018-09-27 02:05:40

makh
Member
Registered: 2011-10-10
Posts: 305

Re: [SOLVED] Host command

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

Board footer

Powered by FluxBB