Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the nslookup command

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces how to use the nslookup command, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

After hanging up, some people said that it was because Baidu's internal service had a downtime, which was completely unscientific and unreliable.

Why can't it be trusted? The reason is very simple. It's okay for me to hang up a service or a piece of service, and even the ghosts don't believe it. So what is the cause?

Although Baidu did not say, but we can also guess. It's supposed to be DNS's pot. Why do you say that? Let me analyze it.

First of all, I will give you a screenshot. This is the DNS related information of Baidu Map that I checked before I got off work last night:

Follow the prompt: server cant't find map.baidu.com: NXDOMAIN. This means that the DNS resolution server cannot be found.

Let's take a look at today's normal content:

This shows that Baidu's service is not available this time, which is the problem of DNS.

Now let's talk about it, nslookup.

The nslookup command is used to query the records of DNS to see if the domain name resolution is normal, and to diagnose network problems in the event of a network failure.

Where type can be of the following types:

An address record

AAAA address record

AFSDB Andrew file system database server records

ATMA ATM address record

CNAME alias record

HINFO hardware configuration record, including CPU, operating system information

ISDN number corresponding to the ISDN domain name

MB server where the specified mailbox is stored

MG mail group records

Information records for MINFO mail groups and mailboxes

Mailbox record of MR renamed

MX mail server records

NS name server record

PTR reverse recording

RP responsible person record

RT route penetration record

SRV TCP server information record

Text message corresponding to TXT domain name

X.25 address record corresponding to X25 domain name

Nslookup has two working modes, namely, "interactive mode" and "non-interactive mode". In "interactive mode", users can query the information of various hosts and domain names from the domain name server, or output a list of hosts in the domain name. In "non-interactive mode", users can only get a specific name or required information for a host or domain name.

Enter the interactive mode and enter the nslookup command directly without any parameters, and nslookup will connect to the default domain name server (that is, the first dns address of / etc/resolv.conf). Or type nslookup-nameserver/ip. To enter the non-interactive mode, just enter the nslookup domain name directly.

For more specific information, you can add parameters:

Thank you for reading this article carefully. I hope the article "how to use nslookup commands" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report