Avatar of d4nnyo
d4nnyo
 asked on

iPad/iPhone - modify hosts file


I need to force an iPad and iPhone to recognize a domain by modding the hosts file inside the devices. I've googled but can't find a clear answer. Anyone tried this?
iPadiPhone

Avatar of undefined
Last Comment
d4nnyo

8/22/2022 - Mon
d4nnyo

ASKER

PS -- the iPads are running 4.3.
Alan Hardisty

Why do you need to force the iPad's - can't you tweak DNS?
d4nnyo

ASKER

I have to force a private IP to see a Jabber server. The domain is not registering properly on the LAN. It's an issue that I can't solve right now without a ton of work. Anyway only Jabber is affected. Modding host files is the fast way around it.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Alan Hardisty

Are the devices Jailbroken and do you have SSH on them?

If they are and you do, then the hosts file can be found under /private/etc/hosts and you can use something like WinSCP.

If not, then I'm not sure how you are going to access the file(s) to edit them.
Jason C. Levine

It has to be via a jailbreak.
ASKER CERTIFIED SOLUTION
ArneLovius

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
d4nnyo

ASKER
ArneLovius,

You have the right answer, I'm sure, but I'm not a DNS expert and so this post will venture off-topic, I guess.

Our Windows 2008 DNS Server is "domainname.local" (I didn't set up this box).

Our Xserve Jabber domain name is "jabber-server.sample.com" with the IP 10.10.50.5.

When I go to add an A Record on the 2008 server on domainname.local, it FQDNs as "jabber-server.sample.com.domainname.local."

On the Apple server, I can ping "jabber-server.sample.com" and it resolves correctly to 10.10.50.5.

On the Windows server, I can ping "jabber-server.sample.com" but it resolves to OpenDNS, our DNS provider.

We do have other Forward lookup zones on the Windows server, including "domainname.com" and "companyname.com."

Is there any way I can add this A Record on my 2008 server, or some other way to let the LAN know where to find "jabber-server.sample.com?"
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.