Add static entry to linux dns server

Posted on 2008-11-04
Last Modified: 2012-08-13
I have a bind9 dns server on Ubuntu 8.10. I want to add a static domain to the server for testing. The test domain we will say is This domain is external from the network i am in. I already have the local zone set up and working.

I am doing this because this company randomly has email fail to a certain domain. It works fine for weeks and the it just stops working and returns 550 host unknow  

What i want to do is add the mx records for statically in the dns server for testing.  

This only started after these guys started trendmicro's IMHS service, if that helps. .

Question by:bml104
    LVL 12

    Accepted Solution

    The basic IMHS service hosts inbound mail only through an MX record, so it wouldn't affect outbound mail. You need to check if you have this or their advanced service which checks outbound mail as well (I'm getting this from their web site). If it's the latter, they should be doing the resolving, not you.

    Assuming you;re delivering outbound mail yourself, adding another site's MX records (and implicitly their entire domain to get the MX records to resolve) is a bad idea, since there's no mechanism to recognize when they make changes. You need to resolve the DNS issues.

    You could start by using one of many online DNS check services like to see if it reports any errors.

    You'll also need to check the status of your internal DNS (which is forwarding the requests) at the time email fails.
    LVL 1

    Author Comment

    I agree, fix the DNS is the same solution I came up with. I totally understand that adding a static entry can cause problems in the wrong run when change occurs. However, this is a customer we setup on the Trend servers. They never saw the problem until we implemented the Trend solution. So the problem is because of what we did and not an issue with their internal Bind server, in their eyes that is.

    I sat on the phone with the admin and had him do an nslookup and dig mx when email was failing. The both showed the resolution was failing at his internal server.The problem is it only happens every few days. It will work fine for 5 days with no issues. Then one day it will send back 550 host not found and the messages will never deliver. 15 min later everything is working fine again.

    LVL 1

    Author Comment

    It seems that their issue is trendmicro's mx records point to cnames and some dns servers do not like this.

    I guess their is a battle between trend and everyone else. Everyone knows what the problem is but provides no solution. Anyone here have any ideas how to fix it?

    LVL 2

    Expert Comment

    Use another email filtering / av service. MX Logic is a good choice.
    LVL 12

    Expert Comment

    It certainly seems that everyone (including the following article from Microsoft) agrees that MX records pointing to a CNAME are a bad practice, although it's not clear if it violates standards.

    Regardless, I'd be worried about an email service that uses an addressing technique that many people caution against. TrendMicro's stance that they adhere to changes to the standard isn't much comfort if others do not. I'd be taking it up with them or switching services as well.
    LVL 1

    Author Comment

    Your post pointed me to which pointed out some interesting errors I pointed out above. I have implemented the fix trend suggested and will post it as soon as I know it works. It might take a week to make sure no emails are lost. When the fix is proven I will award you the points for pointing me in the right direction.


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    New MX Records 12 45
    Exchange2010 Message Tracking Logs 5 34
    oracle query help 36 43
    Mapping network drive with 'net use' 1 21
    Transparency shows that a company is the kind of business that it wants people to think it is.
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now