[SOLVED] dnsmasq Plugin

    • Offizieller Beitrag

    Upload and install. The version number doesn't mean much other than it won't work on omv 0.5 anymore.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    It is in the beta repo here.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thank you for the link, currently I have this installed on a 32bit VM (production DHCP and DNS) and on a ARMv5 pogoplug (testing) environment.


    Is there anything specific that you would like tested, or just time used and experiences with feedback?

  • The thing thats still not working right is the dns servers are not set properly on the machine you install dnsmasq too, but aaron and I were unable to find a proper solution for that problem.


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Hi David, could you clarify that a little more? I currently don't use any "internet" based services on the two OMV systems with the dnsmasq plugin, but so far the OMV systems seem to resolve both local and public DNS lookups correctly.


    Is there any specific example or test that would show this last issue to be solved before considering this plugin for the masses?


    Thank you all for your hard work and efforts.

  • Install it. Set it up. Enable it. -> At that point your system becomes unable to resolve any DNS requests that are outside your local network. I.e. updating won't work.


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Thanks for the prompt reply, but I don't seem to have that problem. My current OMV system can resolve both local and public DNS names just fine from what I can tell; both from a terminal and via OMV web-interface.


    I just enabled and installed the OpenVPN plugin and downloaded a deb file from the webmin website (as a test).


    I send in a system report if you like, login ID is ibclhhTt


    Thanks,

  • I've got the same problem...the settings seem ok, see screenshot


    ----error message----
    Failed
    to execute command 'export LANG=C; invoke-rc.d 'dnsmasq' restart
    2>&1': Restarting DNS forwarder and DHCP server: configuration
    syntax check failed!
    invoke-rc.d: initscript dnsmasq, action "restart" failed.


    Error
    #4000:
    exception 'OMVException' with message 'Failed to execute command 'export
    LANG=C; invoke-rc.d 'dnsmasq' restart 2>&1': Restarting DNS
    forwarder and DHCP server: configuration syntax check failed!
    invoke-rc.d: initscript dnsmasq, action "restart" failed.' in
    /usr/share/php/openmediavault/initscript.inc:176
    Stack trace:
    #0 /usr/share/php/openmediavault/initscript.inc(155):
    OMVSysVInitScript->invoke('restart')
    #1 /usr/share/openmediavault/engined/module/dnsmasq.inc(60):
    OMVSysVInitScript->restart()
    #2 /usr/share/openmediavault/engined/rpc/config.inc(180):
    OMVModuleDnsmasq->applyConfig()
    #3 [internal function]: OMVRpcServiceConfig->applyChanges(Array,
    Array)
    #4 /usr/share/php/openmediavault/rpcservice.inc(125):
    call_user_func_array(Array, Array)
    #5 /usr/share/php/openmediavault/rpcservice.inc(158):
    OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
    #6 /usr/share/openmediavault/engined/rpc/config.inc(224):
    OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
    #7 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array,
    Array)
    #8 /usr/share/php/openmediavault/rpcservice.inc(125):
    call_user_func_array(Array, Array)
    #9 /usr/share/php/openmediavault/rpc.inc(79):
    OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
    #10 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg',
    Array, Array, 1)
    #11 {main}


    -----screenshots----

  • I had some problems with my bonded ethernet inteface which I resolved here but an alternative might also be found if you add


    ### code
    nameserver 127.0.0.1
    nameserver 8.8.8.8 (for example)
    nameserver x.x.x.x.
    end code ####


    to


    /etc/dnsmasq.conf


    OR you can add the local interface 127.0.0.1 to the Extra Options in the OMV LocalDNS/DHCP setup like this


    server=127.0.0.1 8.8.8.8 x,x,x,x <-----note spaces between entries>


    which will get written into /etc/dnsmasq.d/ and should also work


    maybe see this as well

  • Is there any update on the resolving of DNS? I've installed to plugin to setup PXE booting but after a reboot my resolv.conf is overwritten and I cannot resolve any address on the internet.


    Dirty fix is to add the nameservers again to the resolv.conf.
    I think you can also add it to /etc/revolv.conf.d/footer


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Hey guys thanks for your suggestions. I found out that my Asus router was running Dnsmasq and I could edit the config file to include the dhcp-boot parameter. This means that I am no longer using dnsmasq on my NAS.

  • I know some people will hate me because I reopen a [SOLVED] case but
    I had the same issue with the stable version and I resolve it that way


    I went into command line and try to start the dnsmasq service
    /etc/init.d/dnsmasq start
    Starting DNS forwarder and DHCP server: dnsmasq
    dnsmasq: bad IP address at line 36 of /etc/dnsmasq.d/omv.conf


    after looking at the line 36 nano -c /etc/dnsmasq.d/omv.conf
    I figure the error was generate by the NTP option


    So I replace the default one suggest by OMV with the IP of my OMV
    and everything works fine now ;)

  • Hello , what files I need to save to restore on a new OMV install to avoid write leases by hand for second time?.


    PD: I have 45 leases that I can write on new install, but better if is posible to save config files on a safe place and then restore it.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!