Hi, i got your point. So your idea was the best - to resolve the DNS always as the same IP. I think this is pretty simple as a DNS query is carried by a simple UDP packet. There is a python implementation of what you want. Of course, you'll have to translate into C, but maybe this would be helpful: http://code.activestate.com/recipes/491264-mini-fake-dns-server/ You do not even need to parse the DNS query. You could prepare an array containing your fixed answer, and always send it when asked for any UDP records... Rafael On Wed, May 19, 2010 at 3:04 PM, Harold Hallikainen wrote: > > > You could also try: > > > > 1) To send the DHCP configuration to the PC setting the PIC as the > gateway > > of the connecting computer, so any request not addressed to the localnet > > will be sent to the PIC, and you can handle that. > > > > 2) You could try Universal Plug And Play - UPnP - its UDP based and it > can > > announce that there is a UPNP device around. Windows will even show a > > balloon advertising the user that there is a UPNP device, and when the > > user > > clicks the balloon, the browser will open with the correct web address! > > This > > already happens to some printers and D-Link routers > > > > -- > > []s Rafael. > > Linux User #56352 > > > Thanks for the ideas! I have the PIC set as the gateway. I thought maybe I > could reduce the subnet mask down so the user could just key in any number > and would get sent to the gateway. That didn't seem to work, or it did > sometimes, but not others, and I haven't figured out what works and what > doesn't. The user is likely to open a browser that will have a home page > with a URL that has a domain name in it. So, they'll do a DNS request, and > that will fail without a DNS server. With the gateway approach, I'd have > to get them to key in something (some random IP address). I'd like to > avoid that. > > On PnP, the devices are likely to be iPhone, iPodTouch, etc. Do they > support UPnP? I'll have to look at UPnP, though. > > Another poster suggested adding the IP address to the hosts file on the > client computers. I won't have access to those. These will be random users > who will hit the ad hoc WiFi network to receive content. > > THANKS for the ideas thus far! > > Harold > > > > > -- > FCC Rules Updated Daily at http://www.hallikainen.com - Advertising > opportunities available! > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist