ping
host
The host command in linux is used to resolve a host name into an Internet Protocol (IP) address or an IP address into a host name. It is being treated as a DNS Lookup utility.
- To find the IP address of a Hostname.
[root@unixlinux ~]# host google.com
google.com has address 74.125.68.138
google.com has address 74.125.68.139
google.com has address 74.125.68.100
google.com has address 74.125.68.101
google.com has address 74.125.68.102
google.com has address 74.125.68.113
- To find the hostname of an IP address.
[root@unixlinux ~]# host 10.132.88.33
33.88.132.10.in-addr.arpa domain name pointer ip-10-132-88-33.ap-southeast-1.compute.internal.
-To query of type ANY record for the domain.
[root@unixlinux ~]# host -a google.com
Trying "google.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13858
;; flags: qr rd ra; QUERY: 1, ANSWER: 19, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;google.com. IN ANY
;; ANSWER SECTION:
google.com. 88403 IN NS ns4.google.com.
google.com. 88403 IN NS ns1.google.com.
google.com. 88403 IN NS ns2.google.com.
google.com. 88403 IN NS ns3.google.com.
google.com. 120 IN A 74.125.130.138
google.com. 120 IN A 74.125.130.139
google.com. 120 IN A 74.125.130.100
google.com. 120 IN A 74.125.130.101
google.com. 120 IN A 74.125.130.102
google.com. 120 IN A 74.125.130.113
google.com. 300 IN AAAA 2404:6800:4003:c01::8b
google.com. 600 IN MX 20 alt1.aspmx.l.google.com.
google.com. 600 IN MX 30 alt2.aspmx.l.google.com.
google.com. 600 IN MX 40 alt3.aspmx.l.google.com.
google.com. 600 IN MX 50 alt4.aspmx.l.google.com.
google.com. 600 IN MX 10 aspmx.l.google.com.
google.com. 86400 IN TYPE257 \# 19 0005697373756573796D616E7465632E636F6D
google.com. 86400 IN SOA ns1.google.com. dns-admin.google.com. 2014021800 7200 1800 1209600 300
google.com. 3600 IN TXT "v=spf1 include:_spf.google.com ip4:216.73.93.70/31 ip4:216.73.93.72/31 ~all"
Received 497 bytes from 10.132.88.2#53 in 5 ms
hostname
ifconfig
inetd
ip
nslookup
netcat
netstat
dig
telnet
ssh
scp
ftp
rdate
rlogin
rsync
route
traceroute
elinks
wget
host
The host command in linux is used to resolve a host name into an Internet Protocol (IP) address or an IP address into a host name. It is being treated as a DNS Lookup utility.
- To find the IP address of a Hostname.
[root@unixlinux ~]# host google.com
google.com has address 74.125.68.138
google.com has address 74.125.68.139
google.com has address 74.125.68.100
google.com has address 74.125.68.101
google.com has address 74.125.68.102
google.com has address 74.125.68.113
- To find the hostname of an IP address.
[root@unixlinux ~]# host 10.132.88.33
33.88.132.10.in-addr.arpa domain name pointer ip-10-132-88-33.ap-southeast-1.compute.internal.
-To query of type ANY record for the domain.
[root@unixlinux ~]# host -a google.com
Trying "google.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13858
;; flags: qr rd ra; QUERY: 1, ANSWER: 19, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;google.com. IN ANY
;; ANSWER SECTION:
google.com. 88403 IN NS ns4.google.com.
google.com. 88403 IN NS ns1.google.com.
google.com. 88403 IN NS ns2.google.com.
google.com. 88403 IN NS ns3.google.com.
google.com. 120 IN A 74.125.130.138
google.com. 120 IN A 74.125.130.139
google.com. 120 IN A 74.125.130.100
google.com. 120 IN A 74.125.130.101
google.com. 120 IN A 74.125.130.102
google.com. 120 IN A 74.125.130.113
google.com. 300 IN AAAA 2404:6800:4003:c01::8b
google.com. 600 IN MX 20 alt1.aspmx.l.google.com.
google.com. 600 IN MX 30 alt2.aspmx.l.google.com.
google.com. 600 IN MX 40 alt3.aspmx.l.google.com.
google.com. 600 IN MX 50 alt4.aspmx.l.google.com.
google.com. 600 IN MX 10 aspmx.l.google.com.
google.com. 86400 IN TYPE257 \# 19 0005697373756573796D616E7465632E636F6D
google.com. 86400 IN SOA ns1.google.com. dns-admin.google.com. 2014021800 7200 1800 1209600 300
google.com. 3600 IN TXT "v=spf1 include:_spf.google.com ip4:216.73.93.70/31 ip4:216.73.93.72/31 ~all"
Received 497 bytes from 10.132.88.2#53 in 5 ms
ifconfig
inetd
ip
nslookup
netcat
netstat
dig
telnet
ssh
scp
ftp
rdate
rlogin
rsync
route
traceroute
elinks
wget
No comments:
Post a Comment