cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

1358
Views
0
Helpful
1
Replies
Highlighted
Beginner

891 router DNS server without domain name

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

1 REPLY 1
Enthusiast

Re: 891 router DNS server without domain name

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

CreatePlease to create content
Content for Community-Ad