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?
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?
Share this post:
Responses (8)
-
Accepted Answer
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:
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.local=/your_LAN_domain/
-
Accepted Answer
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:
I don't know where the search domain comes from in this case as it is upstream of me. It is important to have:; generated by /usr/sbin/dhclient-script
search cable.virginmedia.net
nameserver 208.67.222.222
nameserver 208.67.220.220
as your first resolver or local DNS resolution does not work for the server as you see.nameserver 127.0.0.1
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] -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
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
-
Accepted Answer
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? -
Accepted Answer
-
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »