1833300 Members
2951 Online
110051 Solutions
New Discussion

Multiple domains

 
Michela Ronchi_2
Occasional Contributor

Multiple domains

Hi all,

does anybody know if I can set a second domain name as an alias in /etc/hosts file without messing up the SAP R/3 instance running on my server?

Ex:
XXX.XXX.XXX.XXX pippo.pluto.com pippo.paperino.com pippo

Thanks and cheers,
Michela
6 REPLIES 6
RAC_1
Honored Contributor

Re: Multiple domains

You can, but no use of it, apps/programs do nslookup on ip address. First entry will precedence in all cases.

If on host name, then yes you can do that.

What exactly you are trying to do??
There is no substitute to HARDWORK
Michela Ronchi_2
Occasional Contributor

Re: Multiple domains

Hi,
the customer "mail relay" seems to have problems accepting cennections from a different domain and they don't want to change it, so I have to find a way to send to the mail relay a "false" domain name.
If you know a different way... Thanks
Cheers,
Michela
Armin Kunaschik
Esteemed Contributor

Re: Multiple domains

Then maybe the domain masquerading feature in sendmail.cf is the right place to look!

Search this forum for sendmail masquerading!

Basically you need to change the DM entry in /etc/mail/sendmail.cf

Regards,
Armin
And now for something completely different...
Muthukumar_5
Honored Contributor

Re: Multiple domains

Yes. You can.

xx.xx.xx.xx pippo.pluto.com pippo.paperino.com pippo

It will work when you set hosts: entry in /etc/nsswitch.conf as,

hosts: files

hth.
Easy to suggest when don't know about the problem!
Michela Ronchi_2
Occasional Contributor

Re: Multiple domains

Hi all,
I already configured the sendmail.cf file with the domain I wanted. And I added the second domain in /etc/hosts.
SAP is still working fine, but the customer mail relay seems to have problems.
I will go on trying to find out what's wrong with it.
Thanks to everybody.
Cheers,
Michela
Michela Ronchi_2
Occasional Contributor

Re: Multiple domains

I got the answer I wanted