1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

Adding "add-mac=text" to dnsmasq

Discussion in 'Asuswrt-Merlin' started by ankur1016, Mar 25, 2020 at 4:40 PM.

  1. ankur1016

    ankur1016 New Around Here

    Joined:
    Wednesday
    Messages:
    2
    Need some help in adding "add-mac=text" to dnsmasq. Settings gets deleted when I am adding add-mac=text to /etc/dnsmasq.conf and reboot my router. Am I doing something wrong here.

    Objective is to have all client id (MAC address) forwarded to cloud DNS provider.

    Router: Asus AC5300 with Asus Merlin 384.15

    Thanks in advance..
     
  2. unsynaps

    unsynaps Senior Member

    Joined:
    Nov 9, 2014
    Messages:
    269
    Location:
    Halethorpe, MD
  3. Dabombber

    Dabombber Regular Contributor

    Joined:
    Apr 29, 2016
    Messages:
    150
    Rather than a postconf script, putting the line(s) in /jffs/configs/dnsmasq.conf.add would be easier.
     
    dave14305 likes this.
  4. ankur1016

    ankur1016 New Around Here

    Joined:
    Wednesday
    Messages:
    2
    Should I just create a new file (dnsmasq.conf.add) and add add-mac=text ?
     
    dave14305 likes this.
  5. Dabombber

    Dabombber Regular Contributor

    Joined:
    Apr 29, 2016
    Messages:
    150
    Yup, there's more details on the configs here. You can use the command "service restart_dnsmasq" to see the changes without needing to reboot.
     
    dave14305 likes this.