Operating System - HP-UX
1753785 Members
7569 Online
108799 Solutions
New Discussion юеВ

Re: Domain level forwarding

 
SOLVED
Go to solution
Charlie Rubeor
Frequent Advisor

Domain level forwarding

Our server is authoritative for several domains, for example, abc.com and def.com. How can I set up domain level forwarding for a third domain, say ghi.com.

In other words, I want any requests for the ghi domain to forward to the nameserver at 12.34.56.77. All other requests not in abc or def should forward to a different address, 12.34.56.88.

tia
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Domain level forwarding

You set up a zone record for ghi.com in your /var/named directory.

It looks like this:

$TTL 86400
@ IN SOA @dns1.masterserver.com {
2004042501 ; serial
3600 ; refresh
3600 ; retry
604800 ; expire
86400 ; ttl
}
@ IN NS dns1.mastererver.com.



@ A 12.34.56.77


every dot is important here and for the sake of my fingers typing, I left out the MX record.

Your other domain zone files will be the same except they will sat 12.34.56.88 on the last line.

All must be referred to in your /etc/named.conf file.

/sbin/init.d/named stop
/sbin/init.d/named start

test with dig or nslookup

Done.

Please post if you need further clarification or documenation.

This works with BIND 9.2.x

SEP
.... #
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Paul R. Dittrich
Esteemed Contributor
Solution

Re: Domain level forwarding

for the "ghi.com" domain:

options {
forwarders {ns1.ghi.com; ns2.ghi.com;};
forward only;
};


HTH,
Paul