DrayTek UK Users' Community Forum

Help, Advice and Solutions from DrayTek Users

LAN DNS server on 2860n via CLI

  • dramsay
  • Topic Author
  • Offline
  • New Member
  • New Member
More
09 Sep 2014 11:41 #81203 by dramsay
LAN DNS server on 2860n via CLI was created by dramsay
Hi,

What is the best way to do both DNS and DHCP to the LAN?

I don't think the router can pull the host names from the DHCP server requests in the same way as dnsmasq on linux does but that would be ideal.

I can set local host names using Applications -> LAN DNS on my 2860n but I have many hosts and can't find the command to set this via CLI, is that possible?

I feel I'm making this more complicated than it needs to be!

Any advice is welcome. Thanks.

Please Log in or Create an account to join the conversation.

More
09 Sep 2014 23:38 #81205 by voodle
Replied by voodle on topic Re: LAN DNS server on 2860n via CLI
Code:
> ip lanDNS ? % Usage: % ip lanDNSRes [- | ... ] % -a , set IP Address Mapping % -d
, delete index's property % -e <0/1> , 0:enable 1:disable % -h , show usage % -i % -l , list profile and domain-IP message % -n , set domain name % -p , set profile name % -r , reset index's setting % -s <0/1> , 0:reply all 1:reply only same sunnet packet % -z , update LAN DNS config to DNS Cache % Example: % ip lanDNSRes -i 1 -e 1 % ip lanDNSRes -i 1 -p FTP % ip lanDNSRes -i 1 -n ftp.drayTek.com % ip lanDNSRes -i 1 -a 172.16.1.1 -s 1 % ip lanDNSRes -i 1 -d 1 % ip lanDNSRes -i 1 -r % ip lanDNSRes -i 1 -l % ip lanDNSRes -l % ip lanDNSRes -z


:D

Please Log in or Create an account to join the conversation.

  • dramsay
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 Sep 2014 10:09 #81208 by dramsay
Replied by dramsay on topic Re: LAN DNS server on 2860n via CLI
Perfect, I missed that. Thanks.

Please Log in or Create an account to join the conversation.

More
15 Sep 2014 19:18 #81230 by deltamikealpha
Replied by deltamikealpha on topic Re: LAN DNS server on 2860n via CLI
I'm assuming this is so local hostnames will resolve internally?

Using ip lanDNSRes -z for me seems to do absolutely nothing - and I'd like to be able to have a local DNS res that's looked after by DHCP, whilst having to update manually wouldn't be great, important hosts are reserved; but my output is:

Code:
VXW> ip lanDNSRes -l ip lanDNSRes -l VXW> ip lanDNSRes -z ip lanDNSRes -z VXW> ip lanDNSRes -l ip lanDNSRes -l VXW>



Or am I misinterpreting the OP as wanting to do what I want!?

Please Log in or Create an account to join the conversation.

Moderators: Sami