What's new

Micro Dns Server

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Sebchr

New Around Here
Hello,

I would like to name my devices (PC, router, tablet, phone..) Is it possible to add micro dns server on asuswrt in order to name devices ?
 
Hello,

I would like to name my devices (PC, router, tablet, phone..) Is it possible to add micro dns server on asuswrt in order to name devices ?

No, because the router is already running a DNS service (dnsmasq). You will have to either name your devices through DHCP reservations, or configure these at the dnsmasq level.
 
Another way to change that names with the web interface is at the network map, choose clients and you get a client list at the right. Then click on the icon of the client and you get the client profile where you can change the name or choose a different icon.
 
I'll share my code. You can likely change it for your purposes.
This is for your jffs partition.
My method is simply to have a caching nameserver.

dnsmasq.conf:
Code:
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
interface=lo
interface=ppp1*
no-dhcp-interface=ppp1*
resolv-file=/jffs/configs/resolv.dnsmasq.conf
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=150000
min-port=4096
dhcp-range=lan,192.168.1.2,192.168.1.254,255.255.255.0,86400s
dhcp-option=lan,3,192.168.1.1
dhcp-option=lan,6,192.168.1.2,0.0.0.0
dhcp-option=lan,252,"\n"
dhcp-lease-max=253
dhcp-authoritative
read-ethers
addn-hosts=/etc/hosts.dnsmasq

resolve.dnsmasq.conf:
Code:
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 208.67.222.222
nameserver 208.67.220.220


Just a followup as I decided to name some devices and noticed I already did that by accident.
in the Lan tab/DHCP server, near the bottom "Manually Assigned IP around the DHCP list (Max Limit : 128)" My dns is resolving all those by whatever 'name' you have associated.
 
Last edited:
Why not let the client choose the hostname via DHCP?

In my dnsmasq setup, whatever host the client returns will be automatically added to the DNS cache.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top