A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
-bash: dnsdomainname: command not found #Debian apt-get install hostname #Ubuntu apt-get install hostname #Arch Linux pacman -S inetutils #Kali Linux apt-get install hostname #CentOS yum install hostname #Fedora dnf install hostname #OS X brew install inetutils #Raspbian apt-get install hostname
dnsdomainname命令 用于定义 DNS
系统中 FQDN
名称中的域名。
hostname [-v] [-a] [--alias] [-d] [--domain] [-f] [--fqdn] [-A] [--all-fqdns] [-i] [--ip-address] [-I] [--all-ip-addresses] [--long] [-s] [--short] [-y] [--yp] [--nis] hostname [-v] [-F filename] [--file filename] [hostname] domainname [-v] [-F filename] [--file filename] [name] nodename [-v] [-F filename] [--file filename] [name] hostname [-v] [-h] [--help] [-V] [--version] dnsdomainname [-v] nisdomainname [-v] ypdomainname [-v]
--help:显示帮助文档 --version:显示命令版本 -v:显示详细执行过程 -F | --file filename:从指定文件读取主机域名
[root@AY1307311912260196fcZ ~]# dnsdomainname -v gethostname()=`AY1307311912260196fcZ' Resolving `AY1307311912260196fcZ' ... Result: h_name=`AY1307311912260196fcZ' Result: h_addr_list=`10.160.7.81'