p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Open Source > Linux
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 1st, 2003, 08:24 AM
Registered User
Points: 15, Level: 1
Points: 15, Level: 1 Points: 15, Level: 1 Points: 15, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2003
Location: cal, wb, India.
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 xxx@yahoo.com.aa.bb.something.mydomain.com)
to a user say root in something.mydomain.com. I mean all mails coming in *.something.mydomain.com should be redirected to root@something.mydomain.com.

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 root@xx.yy.something.mydomain.com

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
__________________
Anirban Biswas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old December 10th, 2003, 01:13 PM
Friend of Wrox
Points: 1,424, Level: 15
Points: 1,424, Level: 15 Points: 1,424, Level: 15 Points: 1,424, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Oxford, , United Kingdom.
Posts: 464
Thanks: 0
Thanked 2 Times in 2 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 03:12 AM
DNS-less ODBC php Morrislgn PHP Databases 0 September 9th, 2004 10:43 AM
DNS kilika Classic ASP Professional 5 August 4th, 2004 01:53 PM



All times are GMT -4. The time now is 07:23 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc