Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does DNS work? #21

Open
duhmojo opened this issue Jan 31, 2014 · 3 comments
Open

Does DNS work? #21

duhmojo opened this issue Jan 31, 2014 · 3 comments
Labels

Comments

@duhmojo
Copy link

duhmojo commented Jan 31, 2014

Hi.

I was looking at the gateway and DNS settings for a use case where a cell or Wifi node would be an Internet/Intranet link point. However I can't tell if the dns.server setting in manet.conf is being picked up by anything. I can't see any shell level evidence and poked around the MM source looking for clues. Thanks.

@jrobble
Copy link
Member

jrobble commented Jan 31, 2014

I did some testing over a year ago using Galaxy Nexus devices that were connected in an intranet. I added the DNS setting so that I could configure them to access the DNS server running on a laptop on that network. The settings worked for that device.

The DNS setting corresponds to the "net.dns1" property in Android. If you "adb shell" in and run "getprop net.dns1" then you should see if the setting took effect.

@duhmojo
Copy link
Author

duhmojo commented Feb 2, 2014

Thanks for the reply. In my testing MM DNS setting updates /data/data/org.span/conf/manet.conf line dns.server, but I don't see anything else changing. greprop doesn't have my MM set DNS set. Which part of MM uses the DNS setting and pushed it into the OS properties? Is it OLSRd related? In your test, did you set your MM Gateway to that laptop?

I'm just trying to determine where my Nexus 7 and S4 devices should have these settings, and if there's some kind of Android difference. Thanks.

@jrobble
Copy link
Member

jrobble commented Feb 4, 2014

Check the following line in ManetServiceHelper.java:

CoreTask.setProp("net.dns1", manetcfg.getDnsServer());

It's not specifically OLSR related. It should be invoked no matter the routing protocol.

Now that I think about it, I was using an ASUS Transformer Prime with a USB Wi-Fi dongle to bridge the mesh and a managed Wi-Fi network. The Prime set its gateway interface to its internal Wi-Fi and the mesh interface to the external USB dongle. We did this so that was could connect the Prime to the managed Wi-Fi network using the normal Android Settings app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants