You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My actual project has many rules and boring bits that just distract. I'm going to simplify what I am trying to do to an absurd amount - just understand that this represents the core of the problem and not the actual project.
First, thank you for the wonderful DNS library. It is much appreciated!
Second, I'm not sure where else to turn to for help with this. I'm not a DNS expert. I apologize if this is not the right place to ask.
I've modified DnsServer.cs to allow me to alter the Response from the Responded event handler:
Around line 128:
The problem is, I see the altered response, a.200.c.d in the console output, but Windows nslookup application displays the unaltered IP address.
Placing breakpoints around, it appears that everything should be working properly code-wise - but obviously something is not right.
I do have a default domain prefix set up on my laptop, call it home.ms. So when I ask for say, www.google.com
I see a type A request for www.google.com.home.ms, with a response of an SOA record of my router (since it handles home.ms queries)
followed by a AAAA request for www.google.com.home.ms, with a response of an SOA record for my router again.
followed by an A request for www.google.com, with a response of my altered AnswerRecord of 142.200.217.100 (however the UNALTERED address, 142.250.217.100, is what nslookup is showing).
followed by an AAAA request for www.google.com, with an AnswerRecord with the real IPv6 address.
Can you provide any help with figuring out why the unaltered IPv4 address is being sent to nslookup?
The text was updated successfully, but these errors were encountered:
My actual project has many rules and boring bits that just distract. I'm going to simplify what I am trying to do to an absurd amount - just understand that this represents the core of the problem and not the actual project.
First, thank you for the wonderful DNS library. It is much appreciated!
Second, I'm not sure where else to turn to for help with this. I'm not a DNS expert. I apologize if this is not the right place to ask.
I've modified DnsServer.cs to allow me to alter the Response from the Responded event handler:
Around line 128:
Then I used the Server example as a base, and modified it to alter the B octet of all responses:
The problem is, I see the altered response, a.200.c.d in the console output, but Windows
nslookup
application displays the unaltered IP address.Placing breakpoints around, it appears that everything should be working properly code-wise - but obviously something is not right.
I do have a default domain prefix set up on my laptop, call it home.ms. So when I ask for say, www.google.com
Can you provide any help with figuring out why the unaltered IPv4 address is being sent to nslookup?
The text was updated successfully, but these errors were encountered: