This is really just a note to myself. As long as I can make it back to this website, I can't lose the note!!!
On my home network, my Cisco 871w router acts as my gateway/firewall/dhcp server. To find out what DNS servers my Cisco 871w router (acting as a dhcp server to computers on my LAN) is sending out by dhcp to clients, do "show hosts". The output looks like:
Name lookup view: Global
Default domain is lv.cox.net
Name/address lookup uses domain service
Name servers are 68.105.x.x, 68.105.x.x
To see what "gateway of last resort" (default gateway) the 871w is using, do "show ip route". Amongst all the other route info, it will show you the gateway IP address.
The way to tell the 871w which dns server to give out to dhcp clients is in the code fragment below, which comes from the config file on the 871w router. The "dns-server" line is the actual line that assigns the dns server.
ip dhcp pool sdm-pool
import all
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
dns-server 10.10.10.50
lease 10
It seems like there ought to be away for the router to give the dhcp client computers more than one dns server, but I haven't haven't figured out how to do that yet.
No comments:
Post a Comment