Forums

Resolved
0 votes
I have finally setted up the clearos as a router of my network.
There are more than 20 computer in my network using this router now.

However, I got an issue by using this clearos router.
I have assigned the IP to each computer by Mac to IP at /etc/ethers.

When I click the "DHCP Server" App in the webconfig, sometimes, the details page so very fast, within 2-3sec.
Sometimes, the details page show very slowly. It take around 60sec or more.

I have no idea on what the server doing while it is loading the DHCP server page.

Is it possible to improve this in some setting?
Tuesday, August 21 2012, 06:06 AM
Share this post:
Responses (8)
  • Accepted Answer

    Saturday, October 13 2018, 10:18 AM - #Permalink
    Resolved
    0 votes
    Albert39 wrote:
    Can that be the cause?
    Let's see what happens tonight. In reality "tonight" probably is not relevant. More relevant is that, at a guess, your WAN IP changed.
    The reply is currently minimized Show
  • Accepted Answer

    Albert39
    Albert39
    Offline
    Saturday, October 13 2018, 09:29 AM - #Permalink
    Resolved
    0 votes
    Well not so silly, my static WAN has no setting for "Automatic DNS Servers" but the dynamic WAN has and it was checked. I have now unchecked it. Can that be the cause?
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, October 13 2018, 09:20 AM - #Permalink
    Resolved
    0 votes
    It is silly to have the choice, but have you made sure all external interfaces have "Automatic DNS Servers" unchecked? Really this setting should live at a higher level.
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Albert39
    Albert39
    Offline
    Saturday, October 13 2018, 08:43 AM - #Permalink
    Resolved
    0 votes
    Thanks Nick for helping

    I'm not using AD connector. In the past night the file /etc/resolv.conf has changed back to original and my DHCP page isn't loading anymore. There is also a file called /etc/resolv-peerdns.conf it has this content witch are the 3 DNS server IP's I entered at the /Network/Settings/IP Settings page.

    nameserver 1.1.1.1
    nameserver 84.200.69.80
    nameserver 91.239.100.100



    My system by the way has Multiple WAN with 1 static configured WAN interface and 1 dynamic configured WAN.

    The file /etc/resolv.conf is generated by /usr/sbin/dhclient-script so I think this script is somehow collecting wrong data.


    I found this. if I change the hostname of my system in webgui the file /etc/resolv.conf contains the right information it looks like yours. after running /usr/sbin/dhclient-script without comments the file doesn't change. So I'm wondering what process is running this script as cron and have resolv.conf changed?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 12 2018, 12:33 PM - #Permalink
    Resolved
    0 votes
    Are you using the AD Connector? If not, then resolv.conf should not look like that. It should look like mine:
    # Please do not edit this file.
    # See http://www.clearcenter.com/support/documentation/clearos_guides/dns_and_resolver
    domain howitts.co.uk
    nameserver 127.0.0.1

    There should be another file, /etc/resolv-peerdns.conf, which looks like:
    ; generated by /usr/sbin/dhclient-script
    search cable.virginmedia.net
    nameserver 208.67.222.222
    nameserver 208.67.220.220
    I don't know where the search domain comes from in this case as it is upstream of me. It is important to have:
    nameserver 127.0.0.1
    as your first resolver or local DNS resolution does not work for the server as you see.

    There is an update for the AD connector environment which is going to come out fairly soon, I think, which will bring it into line with the above set up. In the meanwhile I suggest you add the loopback IP as your first resolver.

    [edit]
    I didn't mean nick.conf but you can add the file and it will do as I intended. It is my own file. Otherwise you can create any other file you want in that folder or edit /etc/dnsmasq.conf and change that, but to be honest it is probably not your issue so not worth the effort.
    [/edit]
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Albert39
    Albert39
    Offline
    Friday, October 12 2018, 12:11 PM - #Permalink
    Resolved
    0 votes
    I mean with "50 IP address assigned to a Mac" that I have 50 static IP's assigned to by mac addresses.

    I found in /etc/resolve.conf (generated by /usr/sbin/dhclient-script:

    ; generated by /usr/sbin/dhclient-script
    search dynamic.ziggo.nl {partial my domain}
    nameserver 89.101.251.229
    nameserver 89.101.251.228


    All "Search" domains and nameservers are not reachable. So I disabled both nameservers in this file and correct the search domain to my correct domain. After this change the DHCP page stared to work again correctly. I don't know if this is a correct solution or just a workaround that has a good effect.


    There is no file nick.conf in my folder /etc/dnsmasq.d only file there is dhcp.conf

    hcp-option=enp3s0,1,255.255.255.0
    dhcp-option=enp3s0,28,192.168.1.255
    dhcp-option=enp3s0,3,192.168.1.1
    dhcp-option=enp3s0,6,192.168.1.1
    dhcp-range=enp3s0,192.168.1.100,192.168.1.254,12h
    read-ethers
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 11 2018, 09:16 PM - #Permalink
    Resolved
    0 votes
    What do you mean by "50 IP address assigned to a Mac"? How long is your lease time?

    The program can't be reading that man files. The dhcp configuration (/etc/dnsmasq.d/dhcp.conf), leases (/var/lib/dnsmasq/dnsmasq.leases), the hosts file, or at least is doing a reverse DNS lookup), /etc/ethers for the static leases. I wonder if it is a DNS issue. What happens if you put:
    local=/your_LAN_domain/
    in /etc/dnsmasq.d/nick.conf then restart dnsmasq. It will stop any unknown local queries leaking out - but I'm not sure why they would on a reverse DNS lookup.
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Albert39
    Albert39
    Offline
    Thursday, October 11 2018, 07:54 PM - #Permalink
    Resolved
    0 votes
    I have exact the same problem DCHP settings page doesn’t show up or it takes several minutes. There are like 50 IP address assigned to a Mac.

    There are no errors in webconfig.log

    Does anyone know what is going on?
    The reply is currently minimized Show
Your Reply