I don't think so. I don't think you should have the same name twice in your hosts file. I'm not sure off hand which address linux would return in this case. (How would it know when to return which one?)

What makes this work is that one resolver (your local resolver) is used when connected to the LAN which returns the LAN address corresponding to the name, and a different resolver (internet authoritative dns) is used when connected to the WAN.

A firewall such as IPCop can be used as a local resolver to provide the local addresses (recommended method). This can also be implemented in a single bind host using the split horizon feature, but that's a bit tricky.

--
-Eric 'shubes'


On 05/21/2012 10:07 AM, Cecil Yother, Jr. wrote:
Shouldn't this then work using the following in the hosts file?

192.168.0.xx  mail.test.com
173.164.181.xx   mail.test.com


On 05/17/2012 11:19 PM, Dhulla, Deepen Vinod wrote:

hi

Use DNS not ip address.

Example : You set your local DNS server with Caching...easy one is
BIND DNS.

like you have exampl : webmail.test.com as your DNS for using from
outside office....which connects to Internet ip.

when in office use your local DNS, which points webmail.test.com to
local ip.

Thus same URL  works internal & External.

I have my Mail-server & DNS configured same one. and it works.




- Deepen Dhulla
“Nothing is particularly hard if you divide it into small jobs.”

http://in.linkedin.com/in/deependhulla
http://www.facebook.com/deependhulla
http://www.twitter.com/deependhulla
Skype: callto://deependhulla



On Friday, 18-05-2012 on 10:52 Maxwell Smart wrote:

    Deepen,

    I got it all working.  It turns out there were several issues at
    hand.  The last that I have to sort is the connection between my
    desktop and the server.  The firewall must be misconfigured.  It's
    an odd one for sure.  I can access the server via the LAN address,
    but not the WAN address.  I can access all other outside web pages
    , but not my own.  The firewall shouldn't require a specific rule,
    but something is not right with it.

    Thank you for you input.

    CJ

    Dear Maxwell

    you can use ETHO & ETH1 different ..provide you have two
    different network mask.

    Like I have  Local Network & Internet Network.

    Whats your requirement actually.


    - Deepen Dhulla
    “Nothing is particularly hard if you divide it into small jobs.”

    http://in.linkedin.com/in/deependhulla
    http://www.facebook.com/deependhulla
    http://www.twitter.com/deependhulla
    Skype: callto://deependhulla



    On Tuesday, 08-05-2012 on 8:36 Maxwell Smart wrote:

        It appears as though I have it all sorted.

        Does anyone have experience using 2 NIC's one for outside and
        one for inside?  I can't seem to get them working in
        concert.  Here's what I have

        ETH0 outside
        ETH1 inside

        If I set it up this way it times out after a while and
        connection from the outside is not possible.  Turn off ETH1
        and connectivity is restored.  Anyone else have experience
        with this and how to make it work.

        Thanks for all the help

        On 05/07/2012 12:09 PM, Alvaro Alejandro Sepulveda Orellana
        wrote:
        User vpopmail
        Group vchkpw


        El 07-05-12 15:00, "Cecil Yother, Jr." <c...@yother.com> escribió:

              OK, I moved the entire directory and it worked.  Now I
            need to modify the file permissions of my vpopmail
            directory.  I have moved the entire contents of the
            vpopmail folder and changed ownership to the correct
            ownership and now everything appears to be working.  I
            may need to run the queue repair once more now that the
            ownership is corrected.  It was root:root before when I
            ran it.


             On 05/07/2012 10:49 AM, Cecil Yother, Jr. wrote:

                 I have had to move a server from a colo.  The
                server motherboard was damaged.  I need to retrieve
                the mysql databases and only have access to the hd
                from another system.  Can this be done?  If so how?




        --



        Atentamente,

        Alvaro A. Sepúlveda Orellana.
        Departamento de Redes y Enlaces.
        Fono:     75 38 200 - 221 21 16.
        CEL:    +569 95542326






        --



    --


--



---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
     If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
    Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
    For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com


Reply via email to