I am new to networking. I got struck while having a look at the dhcp configuration file. I just tried to make a WiFi connection for data transmission using this link. I am using linux OS.
I have successfully established Wi-Fi connection and it is working fine. But some times the ICMP Destination Port unreachable message is displayed.
dhcpd.conf
ddns-update-style none;
ignore client-updates;
authoritative;
option local-wpad code 252 = text;
subnet
10.0.0.0 netmask 255.255.255.0 {
# --- default gateway
option routers
10.0.0.1;
# --- Netmask
option subnet-mask
255.255.255.0;
# --- Broadcast Address
option broadcast-address
10.0.0.255;
# --- Domain name servers, tells the clients which DNS servers to use.
option domain-name-servers
10.0.0.1, 8.8.8.8, 8.8.4.4;
option time-offset
0;
range 10.0.0.3 10.0.0.13;
default-lease-time 1209600;
max-lease-time 1814400;
}
For the specified subnet,
1) Should the router IP address (10.0.0.1 in this case ) must match the domain-name server's IP ?
2)Why do we provide a list of 3 or more IP address in domain-name servers (10.0.0.1, 8.8.8.8, 8.8.4.4) if providing one Server alone is sufficient
option domain-name-servers ip-address [, ip-address... ];
The domain-name-servers option specifies a list of Domain Name System (STD 13, RFC 1035) name servers available to the client. Servers should be listed in order of preference.
3)In some connection, I could find the client connecting to second or third (8.8.8.8 or 8.8.4.4) server IPs. In such case as these IPs are not in the range of the defined Subnet mask (10.0.0.0) will it not create any connection issues ?