Solved

DNS setup

Posted on 2003-11-04
4
207 Views
Last Modified: 2010-03-18
Hi

I have four virtual hosts on my lynix machine. this machine is also DNS server.
and mail server. All four work with same mail server. I want to change one of them so the mail server be some other remote machine [exchange]

How should I set up MX record.

 NS      ns.mainhost.com.
 NS      ns2.mainhost.com.
 MX    10      servername.mainhost.com.

mainhost.com.        A       123.129.197.789

www             CNAME   mainhost.com.
ftp             CNAME   mainhost.com.
mail            CNAME   mainhost.com.
servername        A       123.129.197.456
*               A       123.129.197.789


############
and the host2's zone file that I want to change is like this

 NS      ns.mainhost.com.
 NS      ns2.mainhost.com.

*               A       123.129.203.123
host2.com.        A       123.129.203.123
www             CNAME   host2.com.
ftp             CNAME   host2.com.
mail            CNAME   host2.com.


so how I can change host2's zone file so its website be same on 123.129.203.123 and its user@host2.com email and mail server be somewhere else, for example  points to 66.23.23.14

Thanks
Nav
0
Comment
Question by:Nav444
  • 2
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
vtobusman earned 30 total points
ID: 9683114
ok try this
'
  delete your
mail            CNAME   mainhost.com.
  from mainhost.com.        A
then create an "A" record for the domain it will have
                mainhost.com.     by default  add mail to it like this
  mail.mailhost.com
 and then enter the desired ip address
you mx will point it to the mail.mainhost.com
the a record you create will point it to where ever you need it to go..
         
0
 

Author Comment

by:Nav444
ID: 9683289
Hi
thanks for your posting.
I think this is will change the mail server for all 4 hosts!!

I want to keep www.mainhost.com and user@mainhost.com and www.host2.com all at same machine. But only mailserver for user@host2.com change to other remote machine.

Infact I think I should not change he setting for mainhost.com. I should change the setting for host2.com.

Nav444
0
 

Author Comment

by:Nav444
ID: 9683463
I set things somehow, but I got relay access denied, so I set the mailserver which is an exchange to accept the DNS server IP.

So now it gives this error.

The following recipient(s) could not be reached:

      'mike@host2.com' on 11/4/2003 4:36 PM
            The destination server for this recipient could not be found in Domain Name Service (DNS).  Please verify the email address and retry.  If that fails, contact your administrator.
            <servername.LA.machinename.local #5.4.0>

What could be the reason. Infact no domain name is asigned to ip address of this machine. Is that the reason!!

God, this is getting to confusing. Please some one help. I guess it is very simple for people know this. I am ready to explain everything from beging.

Nav444

0
 
LVL 5

Expert Comment

by:vtobusman
ID: 9683829
even easier...
 on you mail server set it to forward the mail for that user to the other server...

you cant do it in dns....
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Resolve DNS query failed errors for Exchange
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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