Split DNS and MX records

Roberto_Vazquez at schinvest.com Roberto_Vazquez at schinvest.com
Thu Jul 27 11:47:50 UTC 2000



Hi Peter,

one option (that's the way I've done it) is the following.

1. Leave the split DNS configuration, with the MX record owner 
foo.com in the shadow zone.

2. Create an MX record in your internal zone, with owner net.foo.com

3. Insert a new rule in 0 ruleset of sendmail, just before the smtp 
mailer is selected, with the following properties:

LHS: select all the addresses with the domain part foo.com
RHS: select smtp mailer, keep the user name but rewrite the host to 
net.foo.com

# deal with foo.com
R$* < @foo.com > $*          $#smtp $@ net.foo.com $: $1 < @ $2 > $3 

Sendmail will resolve the internal zone.

You may need sender or recipient rewriting.

Regards,

Roberto.

> -----Original Message-----
> From: Peter.Pedersen [mailto:Peter.Pedersen at sas.dk]
> Sent: jueves 27 de julio de 2000 11:28
> To: bind-users
> Subject: Split DNS and MX records
> 
> 
> 
> Hi,
> 
> we run split DNS with firewall-dns and internal dns-servers 
> (forward to
> firewall-DNS).
> The problems is related to the MX records and mail delivery.
> 
> external zone, foo.com:
> 
> foo.com.		IN MX 10 mail.foo.com. # external mail server
> (firewall)
> mail.foo.com.		IN A xxx.xxx.xxx.xxx   # ip address of 
firewall
> external interface
> www.foo.com.		IN A zzz.zzz.zzz.zzz   #
> .
> .
> ...
> 
> 
> 
> Internal zone (shadow), foo.com
> 
> foo.com.		IN MX 10 mail.net.foo.com. # Internal 
> mail server
> www.foo.com.		IN A zzz.zzz.zzz.zzz
> .
> .
> ...
> 
> 
> Internal zone, net.foo.com
> 
> mail.net.foo.com.	IN A yyy.yyy.yyy.yyy	#
> 
> 
> We would like to avoid the shadow zone (with all external 
> host defined) and
> only have to define the MX records for foo.com, but since 
> bind 8 we can not
> just define the MX record for foo.com in the net.foo.com zone.
> Any suggestions??
> 
> Best regards
> 
> 
> 			Peter Pedersen
> 
> 			E-mail: 		peter.pedersen at sas.dk
> 			Phone:		+45 32 32 6138
> 			Fax:		+45 32 32 6731
> 			SAS-mail:	CPHXA/PED
> 
> 
> 
> 
> 
> 




More information about the bind-users mailing list