After many years I finally switched from old (reliable, well tuned and patched) IPcop to IPfire. My IPcop box was probably the oldest computer running IPcop 1.4, the main reason was that modern Linux distributions removed support for TLS 1.0 that is necessary to login to admin interface of IPcop 1.4… I already tried to switch from IPcop several times in the past but I always returned back.
I run IPfire for a week and I see some unknown issue with DHCP and local DNS. Hosts those receive dynamic IP address from DHCP server can be found with “host” command, these are known to local DNS server (IPfire). Host (a server) that was assigned fixed IP address in DHCP server is not known by DNS server. This is not good.
My local domain is “home”, it is only for LAN, IPfire is internet gateway, local LAN has addresses from private range (192.168.x.x/24), IPfire has RED, GREEN and BLUE interfaces, BLUE is WiFi card is PCI, it is based on Atheros chipset (2.4G only). IPfire runs on Fujitsu FUTRO S900, thin client PC.
Description of the issue:
IPfire gateway has GREEN IP address 192.168.222.1 and BLUE IP address 192.168.232.1. OS is IPFire 2.27 (x86_64) - Core-Update 174
Desktop PC, mint.home
, IP address assigned by DHCP from dynamic address pool (192.168.222.100-192.168.222.250), no fixed lease, it works OK:
# host mint 192.168.222.1
Using domain server:
Name: 192.168.222.1
Address: 192.168.222.1#53
Aliases:
mint.home has address 192.168.222.121
# host 192.168.222.121 192.168.222.1
Using domain server:
Name: 192.168.222.1
Address: 192.168.222.1#53
Aliases:
121.222.168.192.in-addr.arpa domain name pointer mint.home.
Server server.home
has IP address assigned by DHCP but it is fixed lease, it doesn’t work. It looks like DHCP server assigned address but it is not visible in DNS; the issue:
# host server.home 192.168.222.1
Using domain server:
Name: 192.168.222.1
Address: 192.168.222.1#53
Aliases:
Host server.home not found: 3(NXDOMAIN)
# host 192.168.222.11 192.168.222.1
Using domain server:
Name: 192.168.222.1
Address: 192.168.222.1#53
Aliases:
11.222.168.192.in-addr.arpa domain name pointer server.home.
# ping -c1 192.168.222.11
PING 192.168.222.11 (192.168.222.11) 56(84) bytes of data.
64 bytes from 192.168.222.11: icmp_seq=1 ttl=64 time=0.123 ms
--- 192.168.222.11 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.123/0.123/0.123/0.000 ms
DNS shows expired entry
Other issue is that DNS shows leased entry that already expired. There is another server on my LAN, nas.home
is FreeNAS and FreeBSD systems has problem when IP address is not assigned by DHCP server, they do not retry. At the moment FreeNAS runs but it has no IP address (but I know it is up an running because it hosts several virtual machines with Linux and those are alive).
I changed nas.home
configuration from dynamic lease to fixed lease. Dynamic lease (192.168.222.135) expired a day ago but it is still reported by DNS. nas.home
lost IP address when I switched from IPcop to IPfire, DHCP server was down for several hours. Fixed lease is reported by DNS too, I am not sure why it works in this case, maybe it is related to “expired dynamic lease”. The issue is that address 192.168.222.135 should not be returned by DNS server:
# host nas.home 192.168.222.1
Using domain server:
Name: 192.168.222.1
Address: 192.168.222.1#53
Aliases:
nas.home has address 192.168.222.22
nas.home has address 192.168.222.135
# host 192.168.222.22 192.168.222.1
Using domain server:
Name: 192.168.222.1
Address: 192.168.222.1#53
Aliases:
22.222.168.192.in-addr.arpa domain name pointer nas.home.
# host 192.168.222.135 192.168.222.1
Using domain server:
Name: 192.168.222.1
Address: 192.168.222.1#53
Aliases:
135.222.168.192.in-addr.arpa domain name pointer nas.home.
nas.home
is “not visible” (It has no IP address, a bug/feature of FreeBSD):
# ping -c1 192.168.222.22
PING 192.168.222.22 (192.168.222.22) 56(84) bytes of data.
From 192.168.222.11 icmp_seq=1 Destination Host Unreachable
--- 192.168.222.22 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
# ping -c1 192.168.222.135
PING 192.168.222.135 (192.168.222.135) 56(84) bytes of data.
From 192.168.222.11 icmp_seq=1 Destination Host Unreachable
--- 192.168.222.135 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms