Тёмный

NSLookup 

Подписаться
Просмотров 89 тыс.
% 854

The NSLookup tool is a great tool for troubleshooting DNS problems. Check out RU-vid.com/ITFreeTraining or itfreetraining.com for more of our always free training videos. This video looks at how to use NSLookup in Windows, however it also available in Linux. NSLookup allows you to control which DNS servers you contact and which DNS records are resolved giving you a real world picture of what is happening with DNS on your network.
Download the PDF handout ITFreeTraining.com/handouts/dns/nslookup.pdf
Demonstration
1. To open NSLookup, open a command prompt from the start menu.
2. To look at the name server records for a particular website, enter in NSLookup followed by the web address. For example, NSLookup google.com
3. If when running the command you have the line "Non-authoritative answer:" in the response, this means the result has been obtained from a DNS server that has either cached the results or has an unauthoritative copy rather than from a DNS server that is consider an authoritative DNS server.
NSLookup Non-authoritative answer
When querying a DNS server, a DNS server will first attempt to resolve the request from its cache. If it is not able to do this it will attempt to resolve the query itself. If the DNS server is configured for forwarding, the query will be forwarded to another DNS server, for example the ISP's DNS server and that DNS server will then answer the query from its cache or attempt to resolve it itself. In any DNS zone, there will be DNS records that state which DNS servers are considered to hold authoritative DNS records for that DNS zone. These can be primary or secondary zones. The point to remember is the administrator for that DNS zone has made a decision that these DNS servers should be considered authoritative or contain up-to-date DNS records. For example, a company, if they had permission to do so, could create a secondary zone from another DNS zone. However, it would be up to the company to make sure this secondary zone was keep up to date. If the company was a 3rd party company there is no guarantee that this would occur. For this reason, an administrator should not make a DNS server like this an authoritative DNS server. When an NSLookup returns a DNS record, it will indicate if this is a non- authoritative result with the text "Non-authoritative answer". The important point to remember is that even when forwarding is used you can still get an authoritative answer if the DNS server had to contact an authoritative DNS server in order to obtain an answer. The results shown for NSLookup are based on where the result came from, not which DNS servers were used in the process.
Demonstration NSLookup Interactive
If you run NSLookup without any parameters, this will launch NSLookup into interactive mode. The mode allows you to run multi commands one after the other.
1. If you enter in a domain name by itself, this will show all the name server records for ITFreeTraining. This is essentially a list of DNS servers that are considered to hold authoritative data for that DNS zone.
2. To list the DNS records for a DNS name, run the command "ls" followed by the DNS name. For example, ls ITFreeTraining.local
3. Most DNS servers will be configured to not allow a list of the DNS records held on that DNS server to be displayed. When you attempt to query the DNS records, you may get an answer back saying query refused.
4. On Microsoft DNS Server, to configure the DNS server to allow DNS records to be listed, run DNS Manager from Administrative Tools or under Tools in Server Manager. In order to configure the zone transfer properties, right click on the zone and select properties.
5. To allow DNS records to be listed using ls in NSLookup, zone transfers needs to be enabled on the computer that is asking for that information. This is done on the "Zone Transfers" tab. Once the tick box "Allow zone transfers" is ticked, the administrator is able to select which DNS server zone transfers will be allow or they can choose the option "To any server". If they select the option, "Only to servers listed on the Name Servers tab" this will only allow zone transfers to servers that are list on the tab "Name Servers".
6. The ls command also supports a number of switches. The --a switch will show only canonical names or aliases. The --d switch will list all DNS records. The "--t TYPE" will allow you to specify the type of DNS record that you want to list. Valid types are A, CNAME, MX, NS and PTR.
Description to long for RU-vid. Please see the following link for the rest of the description.
itfreetraining.com/dns#nslookup
See RU-vid.com/ITFreeTraining or itfreetraining.com for our always free training videos. This is only one video from the many free courses available on RU-vid.
References
"Using NSlookup.exe" support.microsoft.com/kb/200525

Опубликовано:

 

8 апр 2014

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@davidr.flores2043
@davidr.flores2043 4 года назад
Excellent!!!. Great sound (I understand perfectly what the instructor says), excellent illustrations and examples, the quality of the content is great. Al in all excellent. Kudos to the maker of these videos. Thanks for passing on your knowledge. Regards
@mikelaight1319
@mikelaight1319 10 лет назад
Fantastic FREE video from you guys, I love them! Thanks for you time and effort.
@ThePettygrove
@ThePettygrove 10 лет назад
Great video!!!! Just wondering how do you display the computer information on the screen? Thanks
@itfreetraining
@itfreetraining 10 лет назад
We use some free software called Desktop info. www.glenn.delahoy.com/software/
@iamsmoothie2686
@iamsmoothie2686 5 лет назад
Can I troubleshoot DNS using GUI or the command prompt is the only way. I see that using command prompt can be more complex. By the way thanks for putting out great informative videos with such quality I truly appreciate it.
@itfreetraining
@itfreetraining 5 лет назад
It depends on what aspect of DNS you are trying to troubleshoot. If it's the DNS Server service on a server then there is a GUI module you can use. If you are trying on a Windows workstation, realistically the only option is the command line unfortunately.
@Alilbas
@Alilbas 10 лет назад
Thank you for the Great free video. May I ask you how to clear the cashed lookups from the local DNS?
@itfreetraining
@itfreetraining 10 лет назад
For the DNS server, in the DNS Admin Tool right click the server and select the option clear cache. For the local client run the command ipconfig /flushdns
@GassemGariuti
@GassemGariuti 7 лет назад
when i type nslookup the results is Uknkown with an ip address i have tried every thing nothing work.
@muhammadtahaislam5176
@muhammadtahaislam5176 7 лет назад
sir. you are a real genius :)
@itfreetraining
@itfreetraining 7 лет назад
Thanks!
@stephennarh7270
@stephennarh7270 7 лет назад
thanks and God bless you for all your works
@itfreetraining
@itfreetraining 7 лет назад
Thank YOU for watching!
@arturowill1
@arturowill1 8 лет назад
I really like your videos! Thanks for the help.
@itfreetraining
@itfreetraining 8 лет назад
You're most welcome! Thanks for watching, we're glad you enjoyed it.
@chucksmendiola4214
@chucksmendiola4214 10 лет назад
Good stuff!
@itfreetraining
@itfreetraining 10 лет назад
Thank you very much.
@jbgoogle9200
@jbgoogle9200 9 лет назад
itfreetraining Genius.
@Esmi_here
@Esmi_here 11 месяцев назад
@ajaykamath1
@ajaykamath1 10 лет назад
Thank you.
@itfreetraining
@itfreetraining 10 лет назад
No problem at all, thanks for watching.
@MsDelta5000
@MsDelta5000 5 лет назад
Thank you very much for posting such clear info.
@itfreetraining
@itfreetraining 5 лет назад
You're very welcome, thanks for watching!
@TiagoBigodeTI
@TiagoBigodeTI 9 лет назад
Parabéns!
@itfreetraining
@itfreetraining 9 лет назад
Tiago Toledo Faria Thank you
@qadeharpotter4013
@qadeharpotter4013 7 лет назад
thx thumbs up dude
@itfreetraining
@itfreetraining 7 лет назад
Thanks for the thumbs up!