MozillaZine

Manually edit name resolution for local domains.

Talk about add-ons and extension development.
thomasf
 
Posts: 3
Joined: November 25th, 2008, 3:50 am
November 25th, 2008, 4:22 am

Post Posted November 25th, 2008, 4:22 am

Hello!

We want to create a firefox extension for our Development Appliance. Is it possible to manually set the IP for an local domainname (e.g.: foo.user.develop.local) for the current request. So no line in the local hosts file or an entry in a DNS Server is needed?

Why i want to do so: We are creating a virtual appliance where different developers can develop different projects - Typically web applications. This appliance is usually installed on a local computer or on a server on the local network.
In this virtual appliance, it is very easy to add, edit and delete virtual hosts via an webinterface or CLI. For instance:

The name (Domain) of the appliance is for instance develop.local (192.168.1.1).
Hosts can be:
  • host1.develop.local
  • host2.develop.local
  • webapp.develop.local
  • ...
or
  • webapp.user1.develop.local
  • webapp2.user1.develop.loca
  • foo.user2.develop.local
  • ...

Anyway...
It would be very handy if those created hosts would be immediately available on any clients computer on the local network. Until now, after creating a new development host you had to add one line to the hosts file. Yes,... i know thats not really difficult but not everyone in a company is aware of how to doing that. ;-)

To use the appliance as a DNS Server is not viable because many companys have already their network infrastructure. And on a local computer its not very convenient to install a DNS Server and manage all those entries.

So it would be easier if one could edit these entries directly in firefox, or even better this extension is aware of the IP of the appliance and gets those hostnames and IPs automatically from the appliance, so a newly created host resolves right away without editing anything.
Because i am new to extension development for firefox i hope anyone can tell me if this is idea realizable or anyone has another idea how to achieve more convenience. ;-)

I am happy for any Solution or workarounds.


Best regards
Last edited by thomasf on November 26th, 2008, 3:04 am, edited 1 time in total.

thomasf
 
Posts: 3
Joined: November 25th, 2008, 3:50 am
November 25th, 2008, 9:16 am

Post Posted November 25th, 2008, 9:16 am

According to the Docs (http://www.xulplanet.com/references/xpc ... rvice.html) there are ways to query a dns server within an extension but i haven't found any way to manually edit the name resolution of firefox for the current request. I am completly new to extension development for firefox, so i hope anyone could help me, or anyone has an other idea solving the above problem.

thomasf
 
Posts: 3
Joined: November 25th, 2008, 3:50 am
November 26th, 2008, 4:01 pm

Post Posted November 26th, 2008, 4:01 pm

Nobody knows?
No other Ideas or suggestions?

Or is my english that bad? Sorry. ;-)

I appreciate every information, answer or reference.

Thank you.

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 7 guests