Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: Internet: IP one way to mail one way to web

  1. #1
    Join Date
    9th November 2005 - 18:45
    Bike
    2005 Z750S
    Location
    Wellington
    Posts
    1,136

    Internet: IP one way to mail one way to web

    For my business I have a domain name. And I have someone hosting a website and my email.

    And stuff addressed to my domain goes to the correct web and email servers. (i.e. www.notmyname.co.nz and notmyname@notmyname.co.nz)

    However, I don't really use that hosted web site, but lately installed a web server at home to show a demo to a client. Got Xtra to give me a fixed I.P. address for that.

    So I'm wondering if it's possible to fiddle my I.P./domain settings so that my email is still hosted by those folk (I need that to be reliable) but have web traffic come to by home I.P. ? (i.e. something like the domain pointer entries separate for different ports?)

    I set up some of this stuff myself, years ago, but being so long ago and not stuff I do "every day" I am very much not an expert.

    Clues?
    Measure once, cut twice. Practice makes perfect.

  2. #2
    Join Date
    10th September 2008 - 21:23
    Bike
    Tyre Shredder
    Location
    Valley of the Sun
    Posts
    1,068
    Should be easy, your DNS provider (probably the people you bought the domain name through) can forward your mail (mx) to the existing mail server, and either the full hostname (notyourname.co.nz) or just www.notyourname.co.nz, or anythingyoulike.notyourname.co.nz to the static IP.

    If you do that though make sure you're well tied down firewall wise at home, and you might need to forward port 80/443 etc (although if you can browse your website using the external IP already then thats already covered).
    Ciao Marco

  3. #3
    Join Date
    6th May 2008 - 14:15
    Bike
    She resents being called a bike
    Location
    Wellllie
    Posts
    1,494
    Blog Entries
    3
    I used to use DYNDNS for that sort of thing years and years ago... unfortunately their services cost these days. Depending on how you site is written, you could throw in some form of coded redirect. Depending on your webserver you could catch all HTTP 200 calls and redirect to your fixed IP.
    I didn't think!!! I experimented!!!

  4. #4
    Join Date
    19th April 2009 - 18:52
    Bike
    SF
    Location
    Hamiltron
    Posts
    1,847
    Why would hosting your emails along with your site not be reliable? Sorry, noob here

  5. #5
    Join Date
    9th November 2005 - 18:45
    Bike
    2005 Z750S
    Location
    Wellington
    Posts
    1,136
    Quote Originally Posted by steve_t View Post
    Why would hosting your emails along with your site not be reliable? Sorry, noob here
    My "web server" is just for temporary once-in-a-while demo use. I'm not actually hosting a business site on it, I'm just a developer, and sometimes need to show people stuff. (Actually, at the moment it's hosting an X509 protected .Net/WCF service, and some Java developer guy is trying to write a client to call it).

    Because my Broadband port comes to my bedroom, and the PC I had available for use didn't have wrieless, I've got the thing temporarily set up - in my bedroom physically plugged into my router. So it gets turned off at night.

    At home, for these purposes, I just don't want to commit to having to run anything with 24x7 type up-time. I need to be able to kill the machine at any time.

    Now, that's the reverse of my email. I quite like that being hosted by someone else, with redundant hard drives and U.P.S.'s and proper engineers and stuff.

    ---

    Thanks for the advice(s) above.
    Measure once, cut twice. Practice makes perfect.

  6. #6
    Join Date
    9th November 2005 - 18:45
    Bike
    2005 Z750S
    Location
    Wellington
    Posts
    1,136
    Quote Originally Posted by Latte View Post
    Should be easy, your DNS provider (probably the people you bought the domain name through) can forward your mail (mx) to the existing mail server, and either the full hostname (notyourname.co.nz) or just www.notyourname.co.nz, or anythingyoulike.notyourname.co.nz to the static IP.
    Cool. I need to dig up the instructions for logging on to the domain host site, and see what I can find. I guess "MX" is a keyword I'm looking for...

    Quote Originally Posted by Latte View Post
    If you do that though make sure you're well tied down firewall wise at home, and you might need to forward port 80/443 etc (although if you can browse your website using the external IP already then thats already covered).
    Yeah. My router just forwards (only) ports 80 and 443 to my web server. I've built self-signed certs for SSL so even the 443/HTTPS stuff works fine.

    On the web server at present I'm actually only running Windows Firewall, but that too is set to only allow ports 80 and 443 in.

    (I've already seen in the logs, requests to pages coming from random I.P.'s, that look like someone fishing for stuff like PHP admin pages with known secuirty faults or something.)

    Most people I need to show stuff to come from specific IP's (i.e. their company proxy server) so I think I'll probably set up the router to only allow incomming requests from specific IP's, as and when projects require it.


    Cheers,
    Measure once, cut twice. Practice makes perfect.

  7. #7
    Join Date
    9th August 2005 - 19:52
    Bike
    CBR450RR
    Location
    Hamilton
    Posts
    6,368
    Blog Entries
    77
    Might be best to point something temporary at your static ip, for instance devel.notmyname.co.nz

    Get the details for your DNS provider

    • add a new "A" record for a subdomain devel.notmyname.co.nz
    • figure out the ip of your email server
    • Make sure the "MX" record is pointing to it and isn't just an alias for "notmyname.co.nz" otherwise if "notmyname.co.nz" changes it'll change your MX record too



    Usually takes about 4 hours max to propagate (depends on your provider) but then when you point your browser at http://devel.notmyname.co.nz it'll go to your bedroom (you're not gonna be streaming a dodgy web cam are you?? ). The original http://notmyname.co.nz will still go to where ever it points at the moment.
    Zen wisdom: No matter what happens, somebody will find a way to take it too seriously. - obviously had KB in mind when he came up with that gem

    Artificial intelligence is no match for natural stupidity

  8. #8
    Join Date
    17th December 2011 - 11:02
    Bike
    1988 Honda Transalp
    Location
    Wellington
    Posts
    4
    Quote Originally Posted by pzkpfw View Post

    So I'm wondering if it's possible to fiddle my I.P./domain settings so that my email is still hosted by those folk (I need that to be reliable) but have web traffic come to by home I.P. ? (i.e. something like the domain pointer entries separate for different ports?)

    Clues?
    You need to set the MX record for your domain to the hosted hosts address, e.g. add a sub domain mail.whatever.com and point the MX record to it.

    Mike

  9. #9
    Join Date
    16th September 2004 - 16:48
    Bike
    PopTart Katoona
    Location
    CT, USA
    Posts
    6,542
    Blog Entries
    1
    Quote Originally Posted by mashman View Post
    I used to use DYNDNS for that sort of thing years and years ago... unfortunately their services cost these days. Depending on how you site is written, you could throw in some form of coded redirect. Depending on your webserver you could catch all HTTP 200 calls and redirect to your fixed IP.
    Nope they still give you 3 freebies. I use it for some of the control stuff I do. Even paid is only something like $10/year
    Reactor Online. Sensors Online. Weapons Online. All Systems Nominal.

  10. #10
    Join Date
    9th November 2005 - 18:45
    Bike
    2005 Z750S
    Location
    Wellington
    Posts
    1,136
    Quote Originally Posted by Mental Trousers View Post
    (you're not gonna be streaming a dodgy web cam are you?? )
    As soon as I can force it into peoples PC's and then they have to pay me to turn it OFF.

    (Good advice, also, in your post, thanks.)


    tuirider: post #1 for me? Thanks.
    Measure once, cut twice. Practice makes perfect.

  11. #11
    Join Date
    31st March 2005 - 02:18
    Bike
    CB919, 1090R, R1200GSA
    Location
    East Aucks
    Posts
    10,499
    Blog Entries
    140
    From what I understand, you want to basically access a website at your house, leave your mail and main website alone etc.

    1) Don't mess with your MX record, that IS your mail.
    2) You need to know who is hosting the records for your domain. These are the NS records. Not necessarily your domain provider, but usually is. If you PM your domain I can find this out easily enough.
    3) As MT suggests, add a sub record with whoever is hosting the records, something like temp.yourdomain.co.nz (or house, or whatever, possibly something not obvious), set the A record to your house IP.
    4) Set up your port forwarding internally at home to forward 80 (or whatever port you'll access on) plus any translation as necessary, to the server that's listening.

    It won't touch your main website, or your email, and you can turn off the record (and back on) any time you like.

    The one caveat here is your web developer. I've come across some really good ones, who understand all this, but also some that shouldn't call themselves web developers, and believe they have to have total control over a domain to make their website work (because their web tool says so).
    Quote Originally Posted by Jane Omorogbe from UK MSN on the KTM990SM
    It's barking mad and if it doesn't turn you into a complete loon within half an hour of cocking a leg over the lofty 875mm seat height, I'll eat my Arai.

  12. #12
    Join Date
    9th November 2005 - 18:45
    Bike
    2005 Z750S
    Location
    Wellington
    Posts
    1,136
    Right. So it looks like two options. Either

    A: point my web addresses to my new home IP. (In the attached pic, change the two IP's (111's) shown at the top, next to my domain name, to my new 222's IP).

    or

    B: make a new sub-domain, pointing to my new IP. (In the attached pic, add a new "test" or whatever sub-domain in the new row at the bottom. (Showing 222's as my new I.P.)

    Either way, I just leave the two MX addresses pointing where they are.

    Awesome. Thanks KBers.

    One last question (I hope): in option B does the common name on my server cert (for SSL) need to be (I'm guessing this) "test.notmyname"; or still just "notmyname"?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	IPthing.gif 
Views:	11 
Size:	22.1 KB 
ID:	255989  
    Measure once, cut twice. Practice makes perfect.

  13. #13
    Join Date
    31st March 2005 - 02:18
    Bike
    CB919, 1090R, R1200GSA
    Location
    East Aucks
    Posts
    10,499
    Blog Entries
    140
    Just clarifying your picture.

    First two lines is for web... ie, people can type notmyname.co.nz or www.notmyname.co.nz and reach your website.

    The interface is simplifying it a bit, not allowing you priority settings on MX etc, but anyway.

    5th line (what you've entered) is good...

    Re SSL, you should be able to put both of those names on the cert... but now we're heading down something I rarely interact with... once a year or so... Any reason you need SSL?
    Quote Originally Posted by Jane Omorogbe from UK MSN on the KTM990SM
    It's barking mad and if it doesn't turn you into a complete loon within half an hour of cocking a leg over the lofty 875mm seat height, I'll eat my Arai.

  14. #14
    Join Date
    9th November 2005 - 18:45
    Bike
    2005 Z750S
    Location
    Wellington
    Posts
    1,136
    Quote Originally Posted by Gremlin View Post
    Any reason you need SSL?
    Just so it's available for test purposes.

    I currently have a cert on there with the I.P. address for the common name, and it works fine. (If the cert name and URL don't match, browsers can get pissy.)

    (In my current situation (testing a web service) I've had to drop SSL, though, as WCF doesn't allow certain combinations of Message+Transport security, at least not via standard or custom configuration, and I didn't want to get into custom coding the service handlers. Bloody annoying, as with the old WSE 2.0 framework it was dead easy to set up a secure service (WS-*) and then just call it over SSL.)
    Measure once, cut twice. Practice makes perfect.

  15. #15
    Join Date
    31st March 2005 - 02:18
    Bike
    CB919, 1090R, R1200GSA
    Location
    East Aucks
    Posts
    10,499
    Blog Entries
    140
    And now you're over my head

    Contract network management is my arena... so websites are something contractors build
    Quote Originally Posted by Jane Omorogbe from UK MSN on the KTM990SM
    It's barking mad and if it doesn't turn you into a complete loon within half an hour of cocking a leg over the lofty 875mm seat height, I'll eat my Arai.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •