[nsd-users] Cannot reach server from outside

Sagar Acharya sagaracharya at disroot.org
Thu Oct 5 16:50:07 UTC 2023


With

dig humaaraartha.in @103.236.115.116 +tcp

I am able to get a response but

dig humaaraartha.in @103.236.115.116

doesn't return anything. There seems to be a problem with udp!

The response is lost! If you can replicate this, kindly confirm!

Thanking you
Sagar Acharya

On 5 October 2023 12:22:58 am IST, Sagar Acharya via nsd-users <nsd-users at lists.nlnetlabs.nl> wrote:
>I have eth0 and using pppd, a sort of virtual node ppp0 is generated, I believe that something is going wrong in the sense, by default, nsd is going to eth0 when it should go to ppp0.
>
>Can that be the issue?
>
>Would I have to add some routing rules there?
>
>On 4 October 2023 10:38:51 pm IST, Stuart Henderson <stu at spacehopper.org> wrote:
>>On 2023/10/04 20:55, Sagar Acharya via nsd-users wrote:
>>> Tried with ip-address option, it is not working.
>>> 
>>> I think ip-address binds to local ip address. Anyways localhost binds to the same ip as that of
>>> http, 0.0.0.0 , so everything is right from the system.
>>
>>If your host has multiple addresses, binding to 0.0.0.0 will often
>>not do what you want for UDP. The source address of responses will
>>not necessarily be the same address as the query was sent to.
>>This is also described in the nsd.conf(5) manual in the description
>>of the "ip-address" option.
>>
>>I suggest listing the specific IP addresses on which NSD will be
>>sent DNS queries.
>>
>>Also use e.g. tcpdump to check that the queries are actually received
>>at your machine and not filtered upstream.
>>
>>> How do I test udp from other network as dig tests over udp. Or can I dig over tcp?
>>
>>"dig +tcp" will use TCP for the test, but TCP does not have the above
>>problem on multi-homed hosts.
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20231005/dadd4474/attachment.htm>


More information about the nsd-users mailing list