Resolved DNS forwarding help

Discussion in 'Mac OS X Server, Xserve, and Networking' started by DennisBlah, Mar 27, 2015.

  1. DennisBlah, Mar 27, 2015
    Last edited: Mar 30, 2015

    DennisBlah macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #1
    Is there any way I can forward ALL requests to a specific host ?
    I'm not just looking for *.mydomain.com
    but really *

    Can anyone help me out here ? I want 'any' web request going to 192.168.0.1
    (Its the dhcp, dns AND webhost)
     
  2. Les Kern macrumors 68040

    Les Kern

    Joined:
    Apr 26, 2002
    Location:
    Alabama
    #2
    I'm not sure I get this... Do you have your router forwarding to the standard web ports 80, 8081, 443, 25, etc.? Of course this assumes you have your domain hosting company forwarding all domain requests to your router IP using manual or DynDNS, pointing each XXXX.domain.com to the respective directory.
    Maybe I'm missing something. Been a long day.
     
  3. DennisBlah thread starter macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #3
    Hi Les,

    After reading back my topic I understand that Im unclear of my situation.
    I have an Mac Pro with yosemite server on it.
    The mac pro is connected with 2 networks. One on our normal Vlan so I can access it remotely, and the other one is in a seperate Vlan. This Vlan will be used bu different devices over the wifi, and should not be going over my normal Vlan. (So the wifi Vlan should not get internet either) all requests through the dns of the server must be forwarded to the server itself which will run an website.

    I can access the page on my iphone by going to http://192.168.0.1
    Or http://video.test

    So what I actually want to do is setup an dns name thats acts as an 'wildcard' and forward it to 192.168.0.1 like I did with video.test

    But Im not quite sure how to do this on a osx server.

    For now it also forwards all network communication to my normal Vlan. Which I dont want.
     
  4. dyt1983, Mar 29, 2015
    Last edited: Jun 2, 2015

    dyt1983 macrumors 65816

    Joined:
    May 6, 2014
    Location:
    USA USA USA
    #4
    edit: To remove personally identifying information not relevant to the thread.
     
  5. DennisBlah thread starter macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #5
    The thing is, osx server does not allow asterix in hostnames.. Well... It doesnt give an error because it simply can't be filled in :-$
     
  6. dyt1983, Mar 29, 2015
    Last edited: Jun 2, 2015

    dyt1983 macrumors 65816

    Joined:
    May 6, 2014
    Location:
    USA USA USA
    #6
    edit: To remove personally identifying information not relevant to the thread.
     
  7. DennisBlah thread starter macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #7
    I installed dnsmasq on the server, and added address=/#/192.168.0.1 in the config
    This # is an actual asterix for ALL requests and will be forwarded to 192.168.0.1 which is my server.

    This is working great.
     
  8. Les Kern macrumors 68040

    Les Kern

    Joined:
    Apr 26, 2002
    Location:
    Alabama
    #8
    Well done!
     

Share This Page