Hosts File Addition

Discussion in 'iPad' started by IpadRookie, May 23, 2017.

  1. IpadRookie macrumors newbie

    May 8, 2017
    I need to add an IP to my hosts file. Google says to "jailbreak" but others say not to do so. It sounds illegal!

    Further research says to edit my host listing by clicking on DNS and adding. I see that -- but -- 198.132.*.*, and ( google dns) is there.

    How do I connect to google dns to test websites of mine?
  2. sdz macrumors 6502

    May 28, 2014
  3. theluggage, May 24, 2017
    Last edited: May 24, 2017

    theluggage macrumors 68040

    Jul 29, 2011
    Whether it's illegal is debatable (never heard of an individual getting into trouble) but it's not something you should do unless you understand the implications.

    Where is the website you are testing hosted? If it's on your local network, the local DNS server solution below is best. If it's on a web hosting service and accessible via the internet then just buy a domain name, and you'll get an online control panel that lets you set the up address.

    One solution to your problem is to set up a DNS proxy server on your local network - I'd suggest dnsmasq which can run on a Mac (or a cheap Linux box like a raspberry pi) - then change the DNS setting on your iPad to point to the mac. That way, the hosts file on your Mac (which is easy to edit) will be used by your iPad.

    when configuring dnsmasq - turn off the DHCP feature unless you know what you are doing and are on your own, private home network)

    Be warned, that's not a drag and drop solution so you'll have to do a bit of homework.

    (Edit: if you're really lucky, your home network router will allow you to add host names to its internal DNS proxy - but its rare on domestic routers).
  4. IpadRookie thread starter macrumors newbie

    May 8, 2017
    Thanks. Many articles state it's possible. I don't have a router. I access the wifi network where I reside. My websites just moved to a new host so I'd connect there. I reached one site and added an ftp account and tonight I'll try the rest.

Share This Page

3 May 23, 2017