11-09-2012 09:35 AM - edited 03-07-2019 09:58 AM
Hi,
I have a 891 router setup as the local DNS server and external lookups from connected devices (and the router cli) work fine.
I'm having problems getting internal host lookups working though.
this is relevent part of the config, router ip address is 192.168.100.9:
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.100.1 192.168.100.99
!
ip dhcp pool dynamic
import all
network 192.168.100.0 255.255.255.0
default-router 192.168.100.9
dns-server 192.168.100.9
lease 0 1
!
ip dhcp pool RearSwitch
host 192.168.100.13 255.255.255.0
client-identifier ...mac address...
!
ip dhcp pool AccessPoint
host 192.168.100.24 255.255.255.0
client-identifier ...mac address...
ip dhcp update dns override
ip domain retry 0
ip domain timeout 1
ip host rearswitch 192.168.100.13
ip host accesspoint 192.168.100.24
ip dhcp-client update dns server both
ip dns view default
domain timeout 1
domain retry 0
domain round-robin
dns forwarder aa.bb.cc.dd
ip dns server
ip name-server aa.bb.cc.dd
If i try to ping the host rearswitch from the router cli, it resolves fine to 192.168.100.13 but if i try the same from a lan connected device, it doesn't resolve the name. This is the same for an attached 3560 switch, as well as Windows and Mac OSX clients.
If I put rearswitch. (i.e. add a single full stop at the end of the hostname) it resolves fine.
The same behaviour happens with other hosts defined with the ip host command...
Is it possible to use local hostnames without a domain name or full stop?
Cheers
Darren
11-09-2012 03:27 PM
You can add "ip hostname.domain.name x.y.w.z" to router config and DNS suffix "domain.name" to the IPv4 configuration of your client PC. You'll be able to resolve "hostname" from your client PC after that.
J
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide