NSLOOKUP
2015-11-05 19:00
295 查看
Nslookup – Common Usage Examples
NSLOOKUP is a basic command line utility for DNS queries, it’s built into Windows and should be a tool you’re familiar with. Here are some real world examples which I deem common queries.Query A and PTR records
This is as straight forward as you can get. NSLOOKUP FQDN or NSLOOKUP x.x.x.x
Query A and PTR records from another Name-server
You can query other name-servers to the one your client is configured with by adding the NS IP onto the end of the query, for example to use an OpenDNS NS (208.67.222.222) you’d type:
You may notice the non-authoritative answer, this simply means the name-server queried does not hold the entire zone for the domain (in other words it doesn’t have every single record)… more on that later.
Query other types of records
You can query pretty much any other type of record (see the full list here: http://technet.microsoft.com/en-us/library/bb490745.aspx) with the set type= or querytype= command. The single line command would be:
Remember I mentioned earlier about non-authoritative answers? So, below what I’ve done is I’ve queried for the name servers for the bbc.co.uk and then queried them directly.
You can do a lot more with nslookup for example use ‘set debug’ will give you verbose information on a record including things like TTL, here’s the output:
I hope this gives you the basics and some good real world examples…
相关文章推荐
- theme_qq bartik_qq 替换小解密
- 单线程
- java数据结构
- 浅谈事务
- RequestMaping url带参数及参数带“."的解决办法
- filter 万中选一
- c++中的继承
- C++:类的多态与虚函数的使用
- 【leetcode】Missing Number
- JAVA 敏感词过滤
- 数位DP-POJ-3252-Round Numbers
- object-c学习创建类和方法
- Notification与多线程
- php连接mysql...mysqli和mysql
- IKAnalyzer进行中文分词和去停用词
- 【树项目2 - 二叉树遍历的递归算法】
- UIPickerView
- 20151105b Oracle控制文件信息,视图介绍,sga内存介绍
- C#笔记二
- codeforces #329 div 2 B. Anton and Lines(几何)