檢視網域名稱繫結的IP

2021-10-14 02:10:47 字數 1488 閱讀 1992

本文由pusdn強力驅動 -

windows中是自帶的,不用安裝,直接在cmd視窗直接使用

linux中需要安裝:

yum -y install bind-utils
nslookup pusdn.com

debian系

apt-get install dnsutils

centos系

yum install bind-utils

二、或者使用dig命令

dig 是乙個 linux 下用來 dns 查詢資訊的工具,全稱是domain information groper,與 nslookup 類似,但比 nslookup 功能更強大。windows 下只有 nslookup,如果也想用到 dig 命令,就只能自己動手安裝了。

dig 作為 bind 的一部分,官方**如下:

linux下安裝

yum install bind-utils -y
查詢yahoo.com的a記錄:(此處一定是域而不是主機,如我公司為xinpindao.com)

dig yahoo.com a +noall +answer

查詢yahoo.com mx記錄的列表:

dig yahoo.com mx +noall +answer

查詢yahoo.com的權威dns:

dig yahoo.com ns +noall +answer

查詢上面所有的記錄:

dig yahoo.com any +noall +answer

下面是 dig 的一些比較常用的命令:

# dig 最基本的用法

dig @server qianlong.com

# 用 dig 檢視 zone 資料傳輸

dig @server qianlong.com axfr

# 用 dig 檢視 zone 資料的增量傳輸

dig @server qianlong.com ixfr=n

# 用 dig 檢視反向解析

dig -x 124.42.102.203 @server

# 查詢乙個域的授權 dns 伺服器

dig qianlong.com +nssearch

# 從根伺服器開始追蹤乙個網域名稱的解析過程

dig qianlong.com +trace

# 檢視你使用的是哪個 f root dns server

dig +norec @f.root-servers.net hostname.bind chaos txt

# 檢視 bind 的版本號

dig @bind_dns_server chaos txt version.bind

當我們需要乙個快速回答時,+short選項是你最好的朋友:

dig www.isc.org +short

204.152.184.88

網域名稱IP繫結

首先具備3個前提 買伺服器並搭建環境 阿里雲官網購買阿里雲的伺服器 我購買的是window系統,ecs伺服器 在自己的雲伺服器上布置上jdk,配置環境變數 安裝上tomcat mysql。購買網域名稱 根據個人情況,在阿里雲官網上買乙個有意義的網域名稱。購買 實名認證 備案 這個階段花費時間較長,需...

阿里雲網域名稱繫結IP

前提條件 擁有乙個阿里雲網域名稱,擁有一台自己的伺服器,並且知道ip,我的是nginx 1.登陸阿里雲 2.選擇網域名稱與 會看到自己擁有的網域名稱,比如我的是moryingxiao.com 3.點選左側是解析 4.點選紅色的新增解析 5.記錄型別為a,主機記錄為www,記錄值為自己的ip位址,然後...

APACHE 同一IP繫結多個網域名稱

折騰好一陣子。終於弄出來了 在httpd.conf檔案的最後,新增如下的 namevirtualhost 這一第是必須的!namevirtualhost 80 serveradmin iceboard.yang gmai.com documentroot d www easyang serverna...