Redirect DNS when using internet sharing

Discussion in 'macOS' started by arch13e, Mar 9, 2009.

  1. arch13e macrumors newbie

    Joined:
    Mar 9, 2009
    #1
    I am looking for a way to redirect all http requests coming from users that are connected to my macbook pro via internet sharing to my locally hosted web site.

    Scenario; Uni exhibition where a web based application will be on display. Visitors with there own laptop should be able to connect to the access point with ssid "My exhibition" and when opening a browser regardless of their home page instantly be taken to the site hosted on my local apache server.

    Presumably when a user connects to my internet sharing access point my laptop becomes a dns server for that connection and the default gateway. Is there a way of adding dns entries so that i can point all requests to http://mycomputername/mysite

    I tried using the hosts file but you aren't able to use wildcards :-(

    Any thoughts?
     
  2. mason.kramer macrumors 6502

    mason.kramer

    Joined:
    Apr 16, 2007
    Location:
    Watertown, MA
    #2
    You're probably going to have run a real nameserver.
     

Share This Page