Re: Subdomain novice issue

From: Barry Margolin (barry.margolin@level3.com)
Date: 04/03/03


From: Barry Margolin <barry.margolin@level3.com>
Date: Thu, 03 Apr 2003 17:21:00 GMT

In article <b6gqse$1aj$1@nic.grnet.gr>, Jim Aptal <aptal@trnet.tr> wrote:
>Hello. At first please forgive me for the simplicity of my question,
>but I'm rather new to this kind of stuff. I use Red Hat Linux 8.0.
>I am trying to set up a subdomain, sub.domain.com, to install a separate
>mail server,
>named say subsrv.
>But the machine which will store this belongs to domain.com, not
>sub.domain.com.
>(I have also tried the machine to be member of sub.domain.com with the same
>results).
>
>My main MX records are as follows:
>
>domain.com. IN MX 100 srv.domain.com
> IN MX 200 topleveldns.domain.com
>
>I have included the following in my main mydomain.com zone:
>
>sub.domain.com. IN NS srv.domain.com
> IN MX 150 subsrv.domain.com

If you have NS records for the subdomain, then you're delegating a new
zone. So you should have a separate zone file for sub.mydomain.com, and
the MX record should be in that file.

But since you're using the same server for the subdomain as the parent
domain, it doesn't really need to be a separate zone. Get rid of the NS
record and just put the MX record in the mydomain.com zone file.

>I have also included the following in the new server's
>/etc/mail/local-host-names:
>
>subsrv.domain.com
>
>The problem is that sendmail complains about the usual issue "MX list for
>sub.domain.com points
>back to subsrv.domain.com". I tried to change the contents of
>/etc/mail/local-host-names to
>
>sub.mydomain.com

That's what should be in the file.

>but this results in sendmail to hang when trying to send mail to any
>user@sub.domain.com.
>
>Is there something I am doing wrong? I would appreciate any help.

Maybe fixing the DNS problem I described above will solve it.

-- 
Barry Margolin, barry.margolin@level3.com
Genuity Managed Services, a Level(3) Company, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


Relevant Pages

  • Re: DNS Subdomain Vs Delegation
    ... > to always create a subdomain as a separate zone and ... > subdomain under the parent. ... If the zone is hosted on the same server, you do not delegate. ...
    (microsoft.public.cert.exam.mcsa)
  • Re: Thoughts on a large-scale DNS server...
    ... are zone file configurations the same. ... As for TTL, we currently use a 24 hour TTL, for zone file itself we then ... > sounds like a very conservative setup, and for DNS that's good. ...
    (freebsd-isp)
  • RE: Nameserver
    ... The local zone and the zone for my ... requests without using your ISP's name server. ... > work if the host entry in the zone file has a dynamic IP (not ... would be to enable DDNS. ...
    (RedHat)
  • Re: Find a line, and comment out the next 5 lines
    ... take the string and chop it into three parts: ... write the result joined string back out as your new zone file ... # brace -- if you use a greedy match, ...
    (comp.lang.perl)
  • Re: SOA needed in subdomains?
    ... zone so there is only one SOA in the file/record set. ... If you mean a subdomain with it's own child DNS zone then, Yes, ... Accelerated MCSE ...
    (microsoft.public.win2000.dns)