TurnKey Linux Virtual Appliance Library

Access appliance via hostname not ip address

Sorry if this question is too basic. I can't find an answer for precisely this question in the forums.

I have just installed virtualbox-ose on my ubuntu box, downloaded an appliance (moinmoin) and fired it up. I am amazed at what can be done in aprox 250MB. My one issue is that, in order to access moinmoin via a web browser, I have to type in the ip address of the new virtual machine rather than the hostname. Since the ip address is dynamic, I can't rely on it staying the same.

My little local network has a couple of linux servers on static ip addresses, and some windows machines on dynamic ip addressess which they get from the broadband router. I am pretty sure that all local network name resolution is performed via wins, and one of the linux machines runs as a wins server. I want the moinmoin appliance to join in that network / name resolution set-up. It seems to me that, to do that, I will have to install samba just for wins. I don't want to embark on installing a dhcp server as well for the private network if I can help it.

So - in the current setup, my moinmoin appliance has received an ip address of 192.168.1.66, and I can ping it, browse to it etc. What I can't do is ping moinmoin (or of course browse to it by name).

Can anybody suggest a simpler way of achieving name resolution on the local network, given these wishes:

- no local dhcp serevr (other than the broadband router)

- no hosts file set-up which is a pain to manage

- preferably no samba install on the appliance, just for wins

Thanks for any ideas.

Jeremy's picture

To do that you'll need some sort of name server

be it DNS or WINS and you'll need the DHCP server (in your  case your router) to register the name with the name server (so the IP and name match up). Unfortunately most consumer grade routers do not have that facility.

So without a name server linked to DHCP (which your router is probably incapable of) I think you're going to be fresh out of luck!

I personally find adhoc WINS unreliable, even in a Windows only network (I think thats because most routers fail to pass on the broadcast from each machine to all the others). Although I'm sure it would work nicely if you had a WINS server running (still have the DHCP problem though).

I'd just set a static IP, use that and be done with it! I think its the best way to go with servers anyway. I'm of the opinion that it makes the network more robust and reliable (one less thing to break or go wrong).

Thanks

Thanks, that what I thought, but your comments about consumer grade routers confirm something I've been suspecting, but not really looking into. That's very helpful.

DD-WRT

 Jonathan,

 

If you have a compatible router, and a little tech savvy, you can flash your router with dd-wrt software. It should give you the ability to link your router to a dhcp server name. If you're still scared, lifehacker actually has a nice little article on this very subject: http://lifehacker.com/178132/hack-attack-turn-your-60-router-into-a-600-router

http://www.dd-wrt.com/site/index

Install dhcp3-client

Log into your turnkey appliance's webshell and use sudo apt-get install dhcp3-client

Then reboot your virtual appliance and it should work. I did it with a Turnkey Tomcat virtual appliance and it worked like a charm!

Regards,

Al

Thanks

So simple. Thank you.

dns setting

hello , i set in my centoc6.5 with 192.168.1.225 and add a entry in /etc/hosts (192.168.1.225 sunworking) and set host name as sunworking but when go tho my client pc(windows xp) it opend with their ip like \\192.168.1.225 but when i trying to opned \\sunworking then it will show error... plz suggest me what i can do so i can abale to open my servver with their hostname

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)