Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Linux
|
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 1st, 2003, 08:24 AM
Registered User
 
Join Date: Oct 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default DNS Configuration

I have a domain like mydomain.com and a virtual host domain as something.mydomain.com with an IP.

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].

something.mydomain.com is also my mail server.

I am using Red Hat Linux with Bind .

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.

But it is not working .

My zone file looks like this :


@ 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

*.mydomain.com. IN MX 10 someone.mydomain.com

;public server

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


# Now I have written in named.conf file
zone "vpscenter.com"{
        type master;
        file "vpscenter.com.zone";
        allow-transfer { ip- of- slave name- server

};

I have started named dameon.
but I am not getting the desired result.

when I sending any mail at say [email protected]

It is showing Host unknown.

am I missing something?

Please advice me with detailed steps, all necessary configurations and sample code ( zone files etc) ASAP.

Thanks
 
Old December 10th, 2003, 01:13 PM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Can you post the output of:
$ cat /etc/resolv.conf

I dunno much about setting up BIND, but assuming that your setup is right and BINDs running ok, most likely you're looking at the wrong nameserver (rather than your local box, you're using some other DNS).

Maybe check that
$ dig yourdomain.whatever MX

gives the right result too.

--
Don't Stand on your head - you'll get footprints in your hair.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing from DNS to DNS less connection dudeshouse Classic ASP Databases 4 February 7th, 2007 12:02 PM
secondary DNS vs. second primary DNS gangu1971 Linux 1 March 1st, 2005 10:40 AM
dns ghari Classic ASP Professional 3 October 27th, 2004 02:12 AM
DNS-less ODBC php Morrislgn PHP Databases 0 September 9th, 2004 09:43 AM
DNS kilika Classic ASP Professional 5 August 4th, 2004 12:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.