NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

shen's avatar
shen
Tutor
Jun 17, 2014

Wanted: DualServer - Dual DHCP DNS Server

Hi folks,

Im running DualServer on a Windows machine an want to move it to my ReadyNAS 312.

Sources and binaries can be found at http://sourceforge.net/projects/dhcp-dns-server/

Is anybody able to make an AddOn for DualServer?

If not, detailed instructions on how to get it running would also be fine :-)

Stefan

5 Replies

Replies have been turned off for this discussion
  • Ok, I tried myself :-)

    Had to install g++ to compile dualserver which was no problem at all.
    Followed instructions in PDF for compiling and daemonizing, this also worked well.

    Finally I can start dualserverd, but it does not accept my interface. Although it is configured for a static IP, dualserver does not recognize it as static:

    dualserver.ini:
    [LISTEN_ON]
    #Specify the Interfaces you would like Server to listen
    #if you have more than one NIC card on your server
    #always specify which cards will listen DHCP/DNS requests
    #Requests from diffent Interfaces look for matching DHCP ranges.
    #Requests from relay agents look for matching range to relay agent IP.
    #upto 125 interfaces can be specified.
    #Default is all Static interfaces
    192.168.0.10


    [16-Jul-14 11:35:43] Warning: Section [LISTEN_ON], Interface 192.168.0.10 is not Static, ignored
    [16-Jul-14 11:35:43] No Static Interface ready, Waiting...


    root@NAS-70:/opt/dualserver/log# ifconfig
    eth0 Link encap:Ethernet HWaddr 28:c6:8e:d5:c6:1a
    inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::2ac6:8eff:fed5:c61a/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
    RX packets:457800177 errors:0 dropped:951273 overruns:0 frame:0
    TX packets:473324275 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:599063352246 (557.9 GiB) TX bytes:641494497051 (597.4 GiB)
    Interrupt:16 Memory:fea00000-fea20000

    eth1 Link encap:Ethernet HWaddr 28:c6:8e:d5:c6:1b
    UP BROADCAST MULTICAST DYNAMIC MTU:1500 Metric:1
    RX packets:991 errors:0 dropped:37 overruns:0 frame:0
    TX packets:434 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:175364 (171.2 KiB) TX bytes:152671 (149.0 KiB)
    Interrupt:19 Memory:fe800000-fe820000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:41375 errors:0 dropped:0 overruns:0 frame:0
    TX packets:41375 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:4229408 (4.0 MiB) TX bytes:4229408 (4.0 MiB)


  • I finally got it to work, prior to compliling just change dualserver.cpp line 9783 (v7.11)

    from
    if (addr && mask && !(flags & IFF_POINTOPOINT) && !(flags & IFF_LOOPBACK) && !(flags & IFF_DYNAMIC))

    to
    if (addr && mask && !(flags & IFF_POINTOPOINT) && !(flags & IFF_LOOPBACK))


    This will disable checking for dynamic interface.

    compile, daemonize and start:
    g++ dualserverd.cpp -odualserverd -lpthread
    ln -s /opt/dualserver/rc.dualserver /etc/init.d/dualserver
    chmod 755 /etc/init.d/dualserver
    /etc/init.d/dualserver start


    But I still need some help as the documentation does not reflect ths: How to enable automatic statup on boot for ReadyNAS OS 6?
  • shen wrote:
    the documentation does not reflect ths: How to enable automatic statup on boot for ReadyNAS OS 6?

    I don't use OS6, but on OS4 this would make the script run at startup/shutdown:

    sudo update-rc.d dualserver defaults

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More