Let’s Find A Site’s MX Records

Today’s article is going to be rather specific and brief, as we learn how to find a site’s MX records. This isn’t something everyone is going to need to know, but it’s useful for debugging an email issue when you’re hosting websites. So, some folks are going to find it useful – and will then know how to find a site’s MX records. Read on!

I suppose most of my readers will not know what an MX record is…

In short, an MX (Mail Exchange) record is another DNS (Domain Name System) record. In this case, it is used to route emails to the correct server (via the IP address, basically). From there, your server will route the emails to individual email inboxes.

Basically, you want to know this information when things go pear-shaped with your emails or maybe when you’re using a 3rd party email service provider. There are reasons why people will want this information, they will want to find a site’s MX records.

Additionally, I figured I’d do this article now while ‘dig’ is still fresh in our memory. After all, I’ve used dig in the previous two articles and this is the final dig-related topic that I can think of. Here are the previous two articles, if you’re not reading these articles in order and are unfamiliar with the dig command:

How To: Find A Website’s IP Address
How To: Find A Site’s Nameservers

So, with all that in mind, let’s learn how to find a site’s MX records!

How To Find A Site’s MX Records:

Yes, dig is run in the terminal. Yes, you’ll need an open terminal to follow along. If you don’t know how to open the terminal, you can do so with your keyboard – just press CTRL + ALT + T and your default terminal should open.

With your terminal now open, the syntax for this specific dig command is:

For example, you’d find this site’s MX records with:

If you want, as the other dig commands used recently, you can use the +short flag with this, like so:

The output should look like this:

using the dig command to find a site's MX records
There, you can see this site’s MX records. This is public information. So, gawk away!

You can have more than one MX record, should you want failover but the mail protocol already includes some efforts to resend mail when there’s an outage. That’s irrelevant here, but information that I might as well share.

Also, like the other dig commands covered, you can put the flags at the end, like so:

So, that’s an option. I’m not sure why it’s an option. If anyone has a clue as to why it’s an option, do feel free to share. Heck, even if it’s a wild guess, I’ll take it. But, if you want more information about the dig command, run man dig in your terminal.


There you have it, it’s another article. I think this is the last dig article, but who knows? This time around, we’ve learned how to find a domain’s MX records. For those that need to know, this will be handy.

For everyone else, you’ll likely forget this by tomorrow – and that’s okay. You don’t have to carry all the tools in your toolbox. If you tried, you’d need a very big toolbox and it’d be hard to carry it!

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Smash a button!
[Total: 4 Average: 5]

Change Your DNS Servers To Google’s In Lubuntu

This article will show you how to change your DNS servers from your default servers to the DNS servers run by Google, specifically while you’re using Lubuntu. If  you’re not using Lubuntu, the process is likely fairly similar. Either way, it should be a nice and fun article, and we’ll even do it in the GUI instead of the terminal.

So, what is DNS? DNS stands for ‘Domain Name System’. As you know by now, machines are identified by their IP address. It’d suck to have to remember numbers instead of names. It’s also possible to route multiple domain names to the same IP address. So, we have domain names and use those domain names to resolve to IP addresses.

If you’re like most people, right now the DNS servers you’re using have come from your ISP – the folks who provide your internet service. This means that they can see which sites you visit, based on the requests you make to the DNS service.

Some folks don’t like this and prefer to find another DNS provider. (There’s also Secure DNS which this article will not be touching on.) One of those companies that provides free DNS servers is Google. Like them or not, their DNS servers are robust and consistently updated, often making domain propagation quicker for you.

This article is for Lubuntu, as stated above, but you may very well be able to follow the same exact steps with your distro of choice. And, now that you have a general idea of what’s going on, let’s learn how to…

Change Your DNS Servers:

To get started with changing your DNS servers, you need to find your networking icon in your system tray. It’ll be down on the right, not far from the clock. Once you have found it, right click on it so that it brings up the menu to let you “Edit Connections”. It will look something like this:

change network settings
Of course, your version won’t have the nifty arrow.

You’ll want to click the gear icon. That’s why I put the arrow there! 

That will open another window. This window will have tabs  you need to worry about – or a tab you need to know about. You probably shouldn’t need both. The tabs you’re interested in will look like this:

changing the network connections
You should need one of those, probably not both of those…

Now,  you should only need to edit one of those. If you’re still using IPv4 then you use that tab. If you’re using IPv6 then you’ll obviously want to use the appropriate tab. For example, the IPv4 would look like this:

screen to edit dns servers
This would be the tab you’re looking for, pretty much…

Now, where that arrow is is where you want to enter the new DNS server information. You separate them with a comma, though you can use a comma and a space – there will need to be a comma.

For Google’s IPv4 addresses, your choices for and

For Google’s IPv6 addresses, your choices are 2001:4860:4860::8888 and 2001:4860:4860::8844.

Note: The ifconfig or ip addr will help you tell if you have IPv4 or IPv6.

When you’re done, be sure to click the save button to ensure your new settings take effect. Remember the screen and changes, should things go pear shaped. You can undo this easily enough.

This will, of course, work with any set of DNS servers out there. You can use it with other servers if you aren’t a fan of Google. This can serve as a general guideline for other servers, should you wish.


Yup… There it is. You have another article. This time, it tells you how to change your DNS servers if you use Lubuntu. Again, it’ll work for other distros, but I’m only including pictures/vouching for it with Lubuntu.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Smash a button!
[Total: 7 Average: 5]
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.
Zoom to top!