[Dnsmasq-discuss] Source modification for known suffixes

Simon Kelley simon at thekelleys.org.uk
Thu Jan 3 13:43:11 GMT 2008


Jima wrote:
> On Thu, 3 Jan 2008, Antonio González Artime wrote:
>> When a DNS query ends with, for example, .p2p (www.thankyou.p2p),
>> dnsmasq should answer with "localhost" and a specific port. I'm not
>> sure what is the best place in the code to make the change...
>> ¿forward.c rfc1035.c? I would appreciate your help. Thank you,
> 
>  Not to burst your bubble, but could you enlighten me with what RFC
> outlines DNS A records containing port numbers? :-)
>  Port numbers aren't really a part of DNS;

For interest and completeness sake, SRV records (RFC 2782) do contain
port numbers. They're a great idea in theory, but very few people
use/support them, and they're not likely to be the solution for the OP.


> I suspect that you'll need to
> use a mix of DNS hackery and routing (iptables?) to fulfill your goal.

Agreed.

Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list