I have read up on DNS which basically means that it translate my domain name into an ip address. So just to confirm when i do a nslookup on cmd, i get e.g


Default server: ps4.example.org --> this is my fully qualified DN?
Address: --> this is my preferred DNS ?

My main objective is to create a DNS to direct traffic between 2 PCs. I do not understand how MX and A record works even after reading up. And how do i check it?

Update: Just to clarify, i have an internal IP add and a DNS server(preferred DNS in the settings). What is this DNS server referring to?

2 Answers 2


nslookup is a program that lets you query information about domains. This information must come from a DNS server.

When you type nslookup into the command prompt, it starts the nslookup program and initialise the default DNS server to ps4.example.org with associated IP address of This is the DNS server that will answer your subsequent queries about domains.

To check for MX record, you supply nslookup program with more commands

set type=mx

Similarly, to check for A record,

set type=a

You can read up more about what nslookup does.

You do not have to use DNS per-se if it is just for your home network. You can use the computer name if you do not want to use IP. Otherwise, you have to read up on DNS servers instead of DNS records.

  • So what does it mean if i am checking for the mx record of google.com?
    – ps4one
    Sep 11, 2014 at 3:34
  • For beginners, you might want to think that domain and IP are just names that identify a particular server. When you check the MX, it gives you a bunch of domain and IP. This just tells you what are the servers that manage Mail Exchange for [email protected] email addresses.
    – Jake
    Sep 11, 2014 at 3:36

result you posted above means:

ps4.example.org - this is FQDN (fully qualified domain name) for the DNS server - this is DNS IP address

In other words, this is the destination which gives you answer to your DNS requests. Instead of using DNS you can simplify your solution and use /etc/hosts (linux) or "lmhosts" file (windows, however I'm not sure about this one).
As far as MX records: this is something which you can not handle in above mentioned files, you will need to set up your own DNS.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .