DNS Not working?

I've just build my NanodeRF, and all basic tests seem to be ok. However, when using getDHCPandDNS or webClient sketches from the Ethercard library set of examples,  DNS does not seem to work.  I get an address via DHCP ok, but address lookup fails.  Are there any known gotchas in this area?

Thanks

Lloyd

Lloyd's picture

Re: DNS Not working?

I've managed to get this to work, albeit intermittently. Performance was improved by adding a short delay after each read. The same thing with ping tests. Is this normal behaviour?

Lloyd

glyn.hudson's picture

Re: DNS Not working?

DNS normally works ok with us. Occasionally it can take a little while to obtain DNS. What length of delay have you added? If it's found the help we can add it into the NanodeRF github example sketches 

Lloyd's picture

Re: DNS Not working?

delay (5) seemed to do the trick, but I don't think this is the real answer. Yes it worked more often, but there were times when the ping test would never get (or appear to never get) a reply, and then a load would come through at once. Othertimes it would behave perfectly.  I do get some compile warnings (arduino 1.0), so perhaps when I get a moment I should investigate those.

Anyhow I moved on and built my emonTx last night.  Found and tweaked sketches for both base and tx, and had them reliably talking to my installation of emoncms.  So I'm not sure if the test programmes are that useful.  (I'm currently accessing my server via IP, so no DNS lookup required.)  

I currently have emoncms running on an O2 joggler, with a 2GB USB pen drive as my storage. This also runs my weather station data gathering and website. So wview, emoncms, apache, mysql and sqlite, all for less than 8W.  However, I don't expect the USB pen drive to last very long in this configuration (too many writes), so will have to move to something hosted elsewhere - but an interesting experiment.

Next the display....

 

Lloyd

glyn.hudson's picture

Re: DNS Not working?

That sounds awesome! We have experimented with running emoncms on anything less than a full server. It's great to hear that it's working well. It would be great to see a photo. 

Ah, I didn't realise that it was the EtherCard DNS example that you were having trouble with. We don't really use those examples much, although they should work. 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.