BIND9 - DNS redirect?

mobot
mobot used Ask the Experts™
on
We have a website that was hosted by us.  We have an A record defined for the site so that subdomain.mydomain.org  uses this address 172.30.16.249.  The vendor wants us to change the ip address to one of theirs.  10.10.10.10

So that requests to subdomain.domain.org are redirected to their ip addy, 10.10.10.10.

How is this done?  Do you define an A record with the ip address 10.10.10.10 in the proper zone file and then setup a CNAME to do the redirect?  Or can it be done with just an A record?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2015
Commented:
go into the zone for mydomain.org.  create an address record:

subdomain            IN         A         10.10.10.10

is how I would recommend doing it.  but you do realize that everything subdomain.mydomain.org will end up at that IP?

this presumes that you will no longer be hosting your own website and that the owner of 10.10.10.10 will be hosting it for you.

Author

Commented:
Jan hi - Thanks for the detailed explanation. Just an A record is required.  This will help a few of us out.

 I'm trying to understand how you can have a subdomain that you are authoritative for point to an ip address from the vendors domain that you're not authoritative for. The vendors ip address in our zone file seems out of place.  I had thought that you could only use the ip addresses you were authoritative for.
Most Valuable Expert 2015

Commented:
Not in forward zones.

Author

Commented:
Thanks for the explaining that point.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial