Re: Switching Domain name depending on server?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




Brennan Stehling wrote:
Brett,

Why not use the hosts file? It is located here...

C:\WINDOWS\system32\drivers\etc\hosts

And it would look like this.

127.0.0.1 localhost

192.168.11.11 dbserver1
192.168.11.12 dbserver2

192.168.11.21 webserver1
192.168.11.22 webserver2


You have all different names so I'm not sure how that helps.

Do you mean I get use this on each different machine:

machine1
192.168.11.21 mydomain

machine2
192.168.11.22 mydomain

machine3
192.168.11.23 mydomain

and in the code just use "mydomain" instead of localhost or an IP?

Thanks,
Brett

.



Relevant Pages

  • Re: Postfix error question
    ... my hosts file and changed my domain in the main.cf to a qualified domain ... localhost.thedomain.com localhost ... mydomain = thedomain.com ... inet_interfaces = $myhostname, localhost ...
    (alt.os.linux)
  • Re: Postfix troubles
    ... > I am using PostFix on SuSE 9.3. ... mydestination = $myhostname, localhost.$mydomain, localhost ... relay_domains = $mydomain ...
    (comp.os.linux.networking)
  • FQDN vs. domain name
    ... there are three files on my vps which contain the following data inserted by my provider. ... localhost localhost.localdomain ... mydomain.com mydomain ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: [SLE] Stopping open mail relay in SuSE standard server.
    ... Anders Johansson wrote: ... mydestination= $myhostname localhost.$mydomain $mydomain ... ldapaliases_server_host= localhost ... ldapvuser_scope= sub ...
    (SuSE)
  • Re: Postfix localhost in originating email address
    ... It seems as if 'h0st' is being dropped and replaced by 'localhost' to render: ... mydestination = $mydomain ...
    (Fedora)