Figure A: This is what happens when NSLOOKUP queries an external domain

Similar documents
Lab - Observing DNS Resolution

Lab - Observing DNS Resolution

Configuration Network Management Card-2

Ethereal Lab: DNS. 1. nslookup

Chapter 28: Expanding Web Studio

Work No. 1 Samba. What is Samba?

How to Configure the Windows DNS Server

DNS Record Information for the Pushex Exchange server

Computer Networks I Laboratory Exercise 1

Behavioral Differences Regarding DNS Queries and Domain Name Resolution in Different OSs

ACCESSING WEB ARCHIVES

EMBnet Norway User introduction pack (instructions and services overview) George Magklaras Head Systems Engineer Version 3.

Wireshark DNS. Introduction. nslookup

The Domain Name System (DNS) Jason Hermance Nerces Kazandjian Long-Quan Nguyen

CHAPTER 7. ing with CGI

Fundamentals of UNIX Lab Networking Commands (Estimated time: 45 min.)

HTG XROADS NETWORKS. Network Appliance How To Guide: EdgeDNS. How To Guide

My Services Online Service Support. User Guide for DNS and NTP services

Appendix D: Configuring Firewalls and Network Address Translation

Configuring MailArchiva with Insight Server

File Sharing. Peter Lo. CP582 Peter Lo

32-Bit Workload Automation 5 for Windows on 64-Bit Windows Systems

Mail Service Turned On

Lab 1: Packet Sniffing and Wireshark

Hostname (DNS Resolvable) Network Objects

Implementing Microsoft Exchange Mail on Demand

Wireshark Lab: DNS. 1. nslookup

CET442L Lab #2. IP Configuration and Network Traffic Analysis Lab

Lab Editing the HOSTS File in Windows

Wireshark Lab: DNS v6.01

Domain Name System. DNS is an example of a large scale client-server application. Copyright 2014 Jim Martin

AS/400e. Networking DNS

KAREL UCAP DNS AND DHCP CONCEPTS MANUAL MADE BY: KAREL ELEKTRONIK SANAYI ve TICARET A.S. Organize Sanayi Gazneliler Caddesi 10

Debug Failed to connect to server!

IBM Tivoli Composite Application Manager for Microsoft Active Directory Agent

LISTSERV LDAP Documentation

Zimbra :: The Leader in Open Source Collaboration. Administrator's PowerTip #3: June 21, 2007 Zimbra Forums - Zimbra wiki - Zimbra Blog

Chapter 2. Making Shapes

FAQ (Frequently Asked Questions)

Installation Guide For Choic Enterprise Edition

Managing Your Class. Managing Users

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

Exercises: FreeBSD: Apache and SSL: pre SANOG VI Workshop

Euler s Method and Functions

DNS and BIND Primer. Pete Nesbitt linux1.ca. April 2012

Lecture 4: Writing shell scripts

New Lab Intro to KDE Terminal Konsole

Penetration Testing Lab. Reconnaissance and Mapping Using Samurai-2.0

You may use port 587 if port 25 is blocked by your internet provider. This does not apply to customers using PolarComm internet.

Why Diagnosing Application Problems is Too Hard

Synthetic Application Monitoring

Goal of this session

MAIL MERGE TUTORIAL. (For Microsoft Word on PC)

How To Guide Edge Network Appliance How To Guide:

Tips and Tricks SAGE ACCPAC INTELLIGENCE

7 TRANSMISSION CONTROL PROTOCOL/ INTERNET PROTOCOL (TCP/IP)

Configuring DNS on Cisco Routers

Windows Script Host Fundamentals

Using Device Discovery

Part I - Gathering WHOIS Information

The Domain Name System

BASIC ANALYSIS OF TCP/IP NETWORKS

Unix the Bare Minimum

Installing GFI MailEssentials

University of Hull Department of Computer Science. Wrestling with Python Week 01 Playing with Python

Configuring your network settings to use Google Public DNS

ARP and DNS. ARP entries are cached by network devices to save time, these cached entries make up a table

Launch Store. University

Application Notes for Configuring Alternate Methods of Domain Based Routing for Outbound SIP Calls with the Avaya SIP Trunk Architecture Issue 1.

13. Configuring FTP Services in Knoppix

Connecting to Cisco VPN From Ubuntu Linux LTS i386/amd64 Revised Jun 10, 2012 by r.a.parks.

Installing and Configuring a SQL Server 2014 Multi-Subnet Cluster on Windows Server 2012 R2

Checking SQL Server or MSDE Version and Service Pack Level

Mobile MOUSe SERVER ADMINISTRATOR ONLINE COURSE OUTLINE

Apache Configuration

How To Deploy Office 2016 With Office 2016 Deployment Tool

The Domain Name System (DNS)

imhosted Web Hosting Knowledge Base

Lesson Plans Microsoft s Managing and Maintaining a Microsoft Windows Server 2003 Environment

User s Guide for Polycom CX7000 Systems

Configuring an External Domain

Non-authoritative answer: home.web.cern.ch canonical name = drupalprod.cern.ch. Name: drupalprod.cern.ch Address:

Troubleshooting PIX Device Manager

Deploying Layered Security. What is Layered Security?

TELNET CLIENT 5.11 SSH SUPPORT

Writing Thesis Defense Papers

WhatWorks in Log Management EventTracker at San Bernardino County Superior Court

Hands-On UNIX Exercise:

Playing with Numbers

TMS Phone Books Troubleshoot Guide

Hosted CanIt. Roaring Penguin Software Inc. 26 April 2011

Frequently Asked Questions: Cisco Jabber 9.x for Android

ECE 4321 Computer Networks. Network Programming

How to set up the Integrated DNS Server for Inbound Load Balancing

TEACHER NOTES MATH NSPIRED

Installing C++ compiler for CSc212 Data Structures

Midterm Exam CMPSCI 453: Computer Networks Fall 2011 Prof. Jim Kurose

BBC Learning English Talk about English Business Language To Go Part 1 - Interviews

Domain Requirements in Spectralink SIP Phones

Installing DNS On Windows 2003

Transcription:

NSLOOKUP has a fairly rich syntax and can be a bit confusing for those who have not worked with DNS a great deal. Therefore, I want to start out by showing you some of the basics. Although NSLOOKUP exists in both UNIX and Windows, there are some differences in the way that it behaves in the two operating systems. For the purposes of this article, I will be using the Windows version. The first thing that you need to understand about NSLOOKUP is that when you use the NSLOOKUP command, it assumes that you are querying a local domain on your private network. You can query an external domain, but NSLOOKUP will try to search for the domain internally first. For example, the brienposey.com domain is external to my network. If I perform an NSLOOKUP against brienposey.com, NSLOOKUP returns the information that s shown in Figure A. Figure A: This is what happens when NSLOOKUP queries an external domain If you look at the figure, you will see that there are non existent domain error messages for the IP addresses 147.100.100.34 and 147.100.100.5. These are the addresses of my internal DNS servers. Below this information however is the non authoritative answer. This means that my DNS server queried an external DNS server in an effort to resolve the IP address associated with the brienposey.com domain. Now, let s take a look at what happens when you query an internal domain. One of the local domains on my private network is production.com. If I perform an NSLOOKUP against production.com, I get the results shown in Figure B.

Figure B: This is what it looks like when I query an internal domain If you look at the top portion of this screen, you will notice that I m getting the exact same non-existent domain error messages as I got when I queried an external domain. At first, this may seem puzzling. The reason why I got this error message was because I performed an NSLOOKUP outside of the NSLOOKUP shell. I will talk more about the NSLOOKUP shell in the next section. For now though, you need to know that you can enter the NSLOOKUP command by itself. When you do, you will see the familiar nonexistent domain error messages, but you will then be taken to the NSLOOKUP prompt (the > sign). From there you can enter various NSLOOKUP commands. When you are done, you can use the EXIT command to return to the command prompt. The other thing that you should notice about Figure B is the bottom portion of the output. Beneath the reference to production.com is a string of IP addresses. These are the IP addresses of all of the domain controllers within the domain. I should also point out that if multiple IP addresses are assigned to a single server then all of the server s IP addresses will be displayed by NSLOOKUP. The NSLOOKUP Shell Now that I have shown you how to use the NSLOOKUP command to see the IP address or addresses associated with the domain, let s do something a little bit more useful. One of the things that you can do with NSLOOKUP is to look up a specific type of DNS record. A good example of this is an MX record. In case you aren t yet familiar with all of the intricacies of DNS, the MX record points to the organization s mail server. For example, suppose that someone wanted to send an E- mail message to you, one of the first things that their mail server would have to do is to resolve your domain s IP address. However, a normal address resolution won t usually

work for this purpose. In Figure A, you saw that when I ran a DNS query against the brienposey.com domain, the domain resolved to the address 24.235.10.4. Keep in mind though, that this is the IP address of the server that hosts my Web site, not the address of my mail server. If someone wanted to send me an E-mail message their E-mail client would have to resolve the IP address of my domain s mail server. This is where the MX record comes into play. The MX record is a record on a domain s DNS server that specifies the IP address of the domain s mail server. As you can see, the MX record is rather important. Suppose however that your domain was having trouble receiving E-mail and you suspected that a DNS server issue was to blame. You could use NSLOOKUP to confirm that the domain does indeed have an MX record and that the MX record is pointed to the correct IP address. Earlier I briefly mentioned that you could work within the NSLOOKUP shell. To troubleshoot an MX record problem, you pretty much have to work within this shell. Therefore, you would start the process by entering the NSLOOKUP command at the command prompt. Once the NSLOOKUP shell is open, you will need to tell NSLOOKUP which DNS server you want to query. To do so, enter the SERVER command, followed by the DNS server s IP address. You can also enter the server s fully qualified domain name (assuming that it can be resolved) as an alternative to the server s IP address. Now that you have specified a DNS server for NSLOOKUP to use, you can query domains without receiving the non-existent domain error messages that you saw earlier (as long as you remain within the NSLOOKUP shell). To do so, you would simply type the domain name that you want to query. For example, if you look at Figure C, you can see where I have specified a particular DNS server and then queried an external and an internal domain.

Figure C: The error messages go away if you specify a DNS server Now, let s get back to the business of looking up a domain s MX record. To do so, you need to issue a command that tells NSLOOKUP to query based on MX records. The command that you will have to use is: SET QUERY=MX Issuing this command by itself won t give you any information about the domain s MX record though. For that you have to actually query the domain by entering the domain name. If you look at Figure D, you will see that I have specified an MX query and then entered the production.com domain name. NSLOOKUP now returns a wealth of information pertaining to my domain s MX record.

Figure D: When an MX query is specified, you can get a wealth of information about your domain s MX record