Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    How to get current DNS servers from Maemo 5's dnsmasq?

    Reply
    GameboyRMH | # 1 | 2010-11-01, 12:52 | Report

    Title says it all...

    /etc/dnsmasq.conf points to /var/run/resolv.conf, /var/run/resolv.conf.wlan0 and so on for each adapter, but these files don't exist

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to GameboyRMH For This Useful Post:
    cddiede

     
    lma | # 2 | 2010-11-01, 13:06 | Report

    Originally Posted by GameboyRMH View Post
    Title says it all...
    It's probably easier to get them from /etc/resolv.conf instead.

    Originally Posted by
    /etc/dnsmasq.conf points to /var/run/resolv.conf, /var/run/resolv.conf.wlan0 and so on for each adapter, but these files don't exist
    They should be created by the udhcpc script (somewhere under /etc/udhcpc) automatically whenever a connection is established, assuming the DHCP server actually provided DNS configuration.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    GameboyRMH | # 3 | 2010-11-01, 13:11 | Report

    Yes the connection I'm trying to get info on (GPRS w/ proxy) provides a DNS server address with DHCP.

    All my /etc/resolv.conf ever contains is:

    Code:
    nameserver 127.0.0.1

    Edit | Forward | Quote | Quick Reply | Thanks

     
    cddiede | # 4 | 2010-11-01, 14:28 | Report

    This has been kicking my but also as everything I know to check all reports that localhost is the nameserver.

    Does anyone know where to find the nameserver addresses that are assigned to Maemo from DHCP?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    retsaw | # 5 | 2010-11-01, 14:38 | Report

    Originally Posted by GameboyRMH View Post
    Title says it all...

    /etc/dnsmasq.conf points to /var/run/resolv.conf, /var/run/resolv.conf.wlan0 and so on for each adapter, but these files don't exist
    Strange, /var/run/resolv.conf.wlan0 exists when I'm on wireless, and /var/run/resolv.conf.gprs is there when I'm connected via GPRS. Did you actually look when the connection was active?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    GameboyRMH | # 6 | 2010-11-01, 15:04 | Report

    I just noticed the resolv.conf.wlan0 exists when I'm on wireless, but when I was on GPRS I resolv.conf.gprs didn't exist. I'll try again to confirm.

    Edit: Confirmed, while on GPRS and able to browse, there are no resolv.conf files whatsoever in /var/run/

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by GameboyRMH; 2010-11-01 at 15:07.
    The Following User Says Thank You to GameboyRMH For This Useful Post:
    cddiede

     
vBulletin® Version 3.8.8
Normal Logout