[KLUG Members] Can't ping IPCop!
Mike Morrett
members@kalamazoolinux.org
Wed, 15 Jan 2003 20:33:40 -0500
My home network…
IP
address
-------
DHCP PC1 (W2K or BSWare) ---\
DHCP PC2 (W2K) ----\
DHCP PC3 (W98se) -----> [HUB] -> IPCOP -> Modem ->
Al Gore's Internet
Static SRV (RH 7.3 + Samba) ----/
Static HP4MV Printer w/JetDirect ---/
The address for IPCop (v1.2) is 192.168.1.1
I can not "ping ipcop", but "ping -a 192.168.1.1" and "nslookup ipcop"
does work.
C:\TEMP>ping ipcop
Unknown host ipcop.
C:\TEMP>ping -a 192.168.1.1
Pinging ipcop [192.168.1.1] with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time<10ms TTL=255
Reply from 192.168.1.1: bytes=32 time<10ms TTL=255
Reply from 192.168.1.1: bytes=32 time<10ms TTL=255
Reply from 192.168.1.1: bytes=32 time<10ms TTL=255
Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\TEMP>nslookup
Default Server: ipcop
Address: 192.168.1.1
> ipcop
Server: ipcop
Address: 192.168.1.1
*** No address (A) records available for ipcop
> exit
Why does the name of the IPCop firewall box not get entered into its own
DNS? Is there a way round this?
IPCop is using DNSMASQ and according to
http://thekelleys.org.uk/dnsmasq/doc.html ...
"Dnsmasq will serve names from the /etc/hosts file on the firewall
machine: If the names of local machines are there, then they can all be
addressed without having to maintain /etc/hosts on each machine."
Well, "192.168.1.1 ipcop" is in the /etc/hosts file.
Also, "Dnsmasq caches internet addresses (A records and AAAA records) and
address-to-name mappings (PTR records), reducing the load..."
So, why does nslookup work, but ping does not?
I thought the advantage of DHCP was to automagically assign the IP
Address and DNS Server, and not have to edit the "hosts" file??
C:\TEMP>ipconfig /all
Windows 2000 IP Configuration
Host Name . . . . . . . . . . . . : rusty
Primary DNS Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : mydomain.org
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : mydomain.org
Description . . . . . . . . . . . : Intel(R) PRO/100+ PCI Adapter
Physical Address. . . . . . . . : xx-xx-xx-xx-xx-xx
DHCP Enabled. . . . . . . . . . : Yes
Autoconfiguration Enabled . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.12
Subnet Mask . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . : 192.168.1.1
Lease Obtained. . . . . . . . . : Wednesday, January 15, 2003
3:57:24 PM
Lease Expires . . . . . . . . . . : Wednesday, January 22, 2003
3:57:24 PM
Thanks,
Mike
--
cat /dev/coffee | /dev/cup | /dev/mouth | /dev/nose > /dev/keyboard