
Что является эквивалентом host hostname
from?Линуксв Windows?
Для тех, кто подсказывал мне, как изменить имя хоста в Windows: речь идет не об изменении имени хоста компьютера, я имел в виду следующее:
$ host google.com
google.com has address 74.125.236.72
google.com has address 74.125.236.78
google.com has address 74.125.236.73
google.com has address 74.125.236.71
google.com has address 74.125.236.65
google.com has address 74.125.236.69
google.com has address 74.125.236.66
google.com has address 74.125.236.64
google.com has address 74.125.236.67
google.com has address 74.125.236.68
google.com has address 74.125.236.70
google.com has IPv6 address 2404:6800:4007:801::1004
google.com mail is handled by 10 aspmx.l.google.com.
google.com mail is handled by 20 alt1.aspmx.l.google.com.
google.com mail is handled by 30 alt2.aspmx.l.google.com.
google.com mail is handled by 40 alt3.aspmx.l.google.com.
google.com mail is handled by 50 alt4.aspmx.l.google.com.
Подробнее об этой команде Linux см.здесь.
решение1
Команда nslookup
должна предоставить некоторую эквивалентную информацию.
nslookup www.google.com
Server: ns.myorganization.lan
Address: 192.168.0.1
Non-authoritative answer:
Name: www.google.com
Addresses: 2001:4860:400b:c01::6a
204.239.67.98
204.239.67.102
204.239.67.106
204.239.67.108
204.239.67.109
204.239.67.113
204.239.67.117
204.239.67.121
204.239.67.123
204.239.67.79
204.239.67.83
204.239.67.87
204.239.67.91
204.239.67.93
204.239.67.94
решение2
СВЯЗЫВАТЬСервер имен содержит утилиты host и dig и доступен для Windows.
решение3
http://www.softpedia.com/get/Network-Tools/Misc-Networking-Tools/Host.shtml
Хост-команда для Windows.
Это помогает, когда кому-то нужно узнать имя хоста IP.