Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running a websever on my macbook and I want to access it from my phone over wifi using my home network. If I type in the IP address, it connects just fine, but I need the domain name to be fully-qualified in order for me to get anywhere within the web app. How do I set my host name on my home network so I can access the server with a fully-qualified name?

PS (I can't root the phone so I can't edit its host files or redirect its DNS).

share|improve this question
    
Sounds like you need to build yourself a DNS server. :) –  Tanner Aug 10 '12 at 15:47

1 Answer 1

The simple version is machine name dot local. Example: macbookpro.local Of course I'm running a DNS server on my home network (MacMini Server) so it works. You may need to do the same thing. I think the server download for OsX is $20, and adds DNS functionality (along with LOTS of other cool stuff).

share|improve this answer
    
How do I redirect the phone to the local network's DNS instead of whichever it's pointing to? –  Jason Aug 10 '12 at 17:30
    
By having your own DNS server configured (like I mention I do) and having your iPhone use it instead. Just get into your home router and change the IP address of the DNS server that you use to match the IP address of your home computer (after you set up the DNS server on it). Use your current DNS IP address as the second one listed. Then if your DNS server doesn't have a record, you'll try the second. If it does have it (it knows about itself) it'll respond. –  Everett Aug 10 '12 at 17:35
    
This is basically the only way to do what you are trying to do. There HAS to be a DNS server involved, that has a domain record, and is pointing at your server. –  Everett Aug 10 '12 at 17:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.