DNS Configuration
"anirban biswas" <[email protected]> Mon, 3 Nov 2003 15:47:07 +0530
| Newsgroups | gmane.mail.procmail.devel |
|---|---|
| Message-ID | <019801c3a1f3$a57c7db0$0e64a8c0@system10> |
This is a multi-part message in MIME format. ------=_NextPart_000_0195_01C3A221.BC671AC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have a domain like mydomain.com and a virtual host domain as = something.mydomain.com with an IP.=20 =20 My objective is that I want to send all mails directed to = *.something.mydomain.com (eg [email protected]) to a user say root in something.mydomain.com. I mean all mails coming in = *.something.mydomain.com should be redirected to = [email protected]. =20 something.mydomain.com is also my mail server. =20 I am using Red Hat Linux with Bind . =20 I have created zone file like mydomain.com.zone in /var/named with an wildcard Mx Entry and A record. and also pointed this file in = named.conf. =20 But it is not working . =20 My zone file looks like this : =20 =20 @ IN SOA ns1.mydomain.com. root.mydomain.com. ( 2003080801 ; serial 28800 ; refresh 14400 ; retry 3600000 ; expire 86400 ; default_ttl ) ;name server IN NS ns1.mydomain.com. IN NS ns2.mydomain.com. ;mail server =20 *.mydomain.com. IN MX 10 = someone.mydomain.com =20 ;public server =20 ns1.mydomain.com IN A ip- of- primary name- server ns2.mydomain.com IN A ip- of- slave name- server www IN A ip- of- mail- server ftp IN A ip- of- mail- server mail IN A ip- of- mail- server ;end =20 =20 # Now I have written in named.conf file=20 zone "vpscenter.com"{ type master; file "vpscenter.com.zone"; allow-transfer { ip- of- slave name- server }; =20 I have started named dameon. but I am not getting the desired result. =20 when I sending any mail at say [email protected] =20 It is showing Host unknown. =20 am I missing something? =20 Please advice me with detailed steps, all necessary configurations and = sample code ( zone files etc) ASAP. =20 Thanks=20 Anirban Biswas=20 Xponse Technologies Ltd Calcutta=20 India Mob # 9830482426 Mail [email protected] ------=_NextPart_000_0195_01C3A221.BC671AC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2> <DIV><FONT face=3DArial size=3D2> <DIV><FONT face=3DArial size=3D2>I have a domain like mydomain.com and a = virtual=20 host domain as something.mydomain.com with an IP. <BR> <BR>My = objective is=20 that I want to send all mails directed to *.something.mydomain.com (eg = <A=20 href=3D"mailto:[email protected]">[email protected].= aa.bb.something.mydomain.com</A>)<BR>to=20 a user say root in something.mydomain.com. I mean all mails coming in=20 *.something.mydomain.com should be redirected to <A=20 href=3D"mailto:[email protected]">[email protected]</= A>.<BR> <BR>something.mydomain.com=20 is also my mail server.<BR> <BR>I am using Red Hat Linux with Bind=20 .<BR> <BR>I have created zone file like mydomain.com.zone in=20 /var/named with<BR>an wildcard Mx Entry and A record. and also pointed = this file=20 in named.conf.<BR> <BR>But it is not working .<BR> <BR>My zone = file=20 looks like this=20 :<BR> <BR> <BR>@  = ; =20 IN SOA = ns1.mydomain.com.=20 root.mydomain.com.=20 (<BR> &n= bsp; =20 2003080801 ;=20 serial<BR> &nb= sp; &nbs= p;=20 28800 ;=20 refresh<BR> &n= bsp; &nb= sp;=20 14400 ;=20 retry<BR> &nbs= p;  = ;=20 3600000 ;=20 expire<BR> &nb= sp; &nbs= p;=20 86400 ;=20 default_ttl<BR> &nbs= p;  = ; =20 )<BR>;name=20 server<BR> &nb= sp; =20 IN NS =20 ns1.mydomain.com.<BR> &nbs= p; =20 IN NS =20 ns2.mydomain.com.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>;mail=20 server<BR> <BR>*.mydomain.com. &n= bsp; =20 IN MX =20 10 = someone.mydomain.com<BR> <BR>;public=20 server<BR> <BR>ns1.mydomain.com = IN =20 A ip- of- primary name-=20 server<BR>ns2.mydomain.com IN =20 A ip- of- slave name-=20 server<BR>www = =20 IN A ip- of- mail-=20 server<BR>ftp = =20 IN A ip- of- mail-=20 server<BR>mail  = ; =20 IN A ip- of- mail- = server</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>;end<BR> <BR> <BR># Now I = have written in=20 named.conf file <BR>zone=20 "vpscenter.com"{<BR> type=20 master;<BR> file=20 "vpscenter.com.zone";<BR> =20 allow-transfer { ip- of- slave name- server</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>};<BR> <BR>I have started named = dameon.<BR>but=20 I am not getting the desired result.<BR> <BR>when I sending any = mail at say=20 <A=20 href=3D"mailto:[email protected]">[email protected]= domain.com</A><BR> <BR>It=20 is showing Host unknown.<BR> <BR>am I missing=20 something?<BR> <BR>Please advice me with detailed steps, all=20 necessary configurations and sample code ( zone files etc) =20 ASAP.<BR> <BR>Thanks <BR></FONT></DIV> <DIV><FONT face=3DArial size=3D2>Anirban Biswas <BR>Xponse Technologies=20 Ltd<BR>Calcutta <BR>India<BR>Mob # 9830482426<BR>Mail <A=20 href=3D"mailto:[email protected]">[email protected]</A></FONT></DIV></F= ONT></DIV></FONT></DIV></BODY></HTML> ------=_NextPart_000_0195_01C3A221.BC671AC0--