Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i create domains and subdoma

Status
Not open for further replies.

broomsweeper

IS-IT--Management
Nov 24, 2002
8
JM
how do i create domains and subdomains in Linux. I use RH 8 and I'm a real newbie.
Thanx in advance... guys
 
slepnir214,
Sendmail depends on the domain (dns) structure i have on the system.. If I don't get that right I can't configure Sendamail to pick or send mail for these domains..

I have the domain e.g mydomain.com and would like subdomains for the various locations tobe regA.mydomain.com,rRegB.mydomain.com... all on 1 box with their MX pointing to this same box so that the can use any mail server from their end to pick up mail for them ... bcos of the unstable comm link..

that is wher i find myself and I need help...

thank u.
 

I think you can just add something like:

hostname IN MX 0 sub.domain.
ip-number IN A hostname

in your existing zone file.

Otherwise:

Add

zone "sub.domain" in {
type master;
file "db.sub.domain";
};

to your /etc/named.conf
and

create a zone file db.sub.domain and add the lines I put in the first example. If you don't know how to create the zone file, just copy another one and correct the information to match the sub zone.

Give it a try and get back to us if you're stuck.

Cheers Henrik Morsing
IBM Certified AIX 4.3 Systems Administration
 
I've added the subdomain to the existing zone file... I can send mail from the subdomain but can't receive mail sent from the internet... I get the ff. error on the mail server:

---The following address had permanent fatal errors ---
<kink@regA.mydomain.com>
(reason: 553 5.3.5 system config error)

--- Transcript of session follows ------
553 5.3.5 mydomain.com. config error: mail loops back to me (MX problem?)
554 5.3.5 Local configuration error

 
Ok, add the domain names in the sendmail.cw file.

Cheers Henrik Morsing
IBM Certified AIX 4.3 Systems Administration
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top