Modify

Opened 5 years ago

Last modified 2 years ago

#13249 new enhancement

support for --txt-record in dnsmasq

Reported by: jra@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: Cc:

Description

I needed to be able to set the txt-record parameter list in dnqmasq.conf. The trivial changes I made to support this are attached. I would appreciate if you can put them into OpenWRT so I don't need to maintain a patch.

Attachments (3)

p (790 bytes) - added by jra@… 5 years ago.
Patch to make it possible to set txt-records
p.2 (902 bytes) - added by jra@… 5 years ago.
Correct patch (ignore the other one)
dnsmasq_uci.patch (1.5 KB) - added by anonymous 2 years ago.
Dnsmasq UCI additions for txt-record, ptr-record and listen-address

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by jra@…

  • Attachment p added

Patch to make it possible to set txt-records

comment:1 Changed 5 years ago by jra@…

With this change, you set txtrecord in the /etc/config/dhcp like this:

config dnsmasq
  ..snip..
  list txtrecord '_http._tcp.lan,name=foo'
  list txtrecord '_http._tcp.lan,name=bar'

You can verify they are there like this:

opkg install bind-host
host -t txt _http._tcp

Changed 5 years ago by jra@…

Correct patch (ignore the other one)

comment:2 Changed 5 years ago by jra@…

I needed ptr-record as well, so the second version of the patch does both txt-record and ptr-record (and fixes a typo in how txt-record was done).

-jeff

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:4 Changed 2 years ago by anonymous

Would be really nice if this went in. It's a trivial but useful patch and has been here a long time.

Changed 2 years ago by anonymous

Dnsmasq UCI additions for txt-record, ptr-record and listen-address

comment:5 Changed 2 years ago by anonymous

Please submit you patch to the OpenWrt Development Mailing list for public review. Follow the steps outlined in https://dev.openwrt.org/wiki/SubmittingPatches to get your patch merged.

comment:6 Changed 2 years ago by jra@…

Done. Mr Anonymous who asked for this, it would be helpful if you could test the updated patch (psted to openwrt-devel mailing list), as I am no longer working on OpenWRT day-to-day.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.