I want to modify the DNS query answer that PowerDNS returns by replacing the IP of the domain with the IP of a static page. I know the place to do this modification is in the startDoResolve function in pdns_recursor.cc. However I am having trouble figuring out where exactly the IP gets inserted into the response packet. Anyone having experience working with PowerDNS who can help me out with this?
Related Questions in DNS
- AWS Dns record A not navigate to elb
- I created a domain name from cloudflare, and Hoisted my static site hosted in google firebase, error in adding custom domain in firebase
- I am the domain admin, newbie, how do I connect youtube.com on my domain?
- The problem with raising the DNS server on Ubuntu 20.04 - bind9
- I registered a service in eureka which is resolving through java code. But it is not able to resolve its name when hitting through chrome or postman
- Assigned A record for Subdomain in Cloud DNS to Compute Engine VM instance but not propagated/resolved yet
- Why Bind9 responds with latency for RPZ rule?
- Create aws certification for domain
- Make Bind DNS server to request only root DNS servers of IANA website
- Domain Still Redirecting Despite Transferring Out of Godaddy
- Set up MX records in apache/Ubuntu to point to external mail server
- Changing AWS registred domain back to AWS name servers
- Docker networking forwarding failed
- Can access IP address of domain via mobile but not wifi
- CURL got Could not resolve host: my subdomain
Related Questions in UDP
- Discussion on using golang to implement UDP client timeout retransmission
- What is the correct way to setup and use the Ethernet library in Arduino in order to send and receive UDP broadcast messages between LAN devices?
- Multicast packets not received on windows
- Microcontroller hangs with LWIP UDP
- UDP socket client not able to receive data
- "Parameter is not valid" exception when using Image.FromStream() - UDP Video live stream
- k3s change requested UDP port assignment
- Why does the python client socket receiving a reply but still throw the exception in some threadings?
- Gnuradio "double free or corruption (!prev)" error
- Why we need wraparound in UPD checksum algorithm?
- Simple Java UDP server/client-program works on local machine but not over either LAN (different machines) or internet
- Docker bridge does not transmit from tcpreplay IPv6/UDP/GTP traffic
- trying to send TCP packet and recieve it back and count time in client+server app
- recvmsg returns EAGAIN after select reports file descriptor is ready
- Receiving UDP broadcast on Android
Related Questions in SPOOFING
- I want to send packet with Scapy and it send packet normally, but they come back without an answer
- What's the point of SPF if an attacker spoofs the "From" address?
- risks using dynamic-dns for selfhosted webservice
- Exact same request gives different response on Linux compared to Windows
- Increase security in SQL Server with known login that cannot be changed or dropped?
- How does server verify geolocation data received from client?
- AEM issue while spoof login
- VM mac adress is identical as the host device
- Verify that agent process is running on remote client
- Unauthorized domain name spoofing
- Need help in simulating (and blocking) HTTP_HOST spoofing attacks
- How to spoof 'to' and 'from' fields from actual email recipient and sender addresses
- Prevent spoofing on git repositories on Azure DevOps
- Redirect each single page to via 3 Domains
- spoofer.js: An unexpected error has occurred, should I be concerned?
Related Questions in REVERSE-DNS
- Reverse DNS Lookup in Delphi 12?
- Verified Bingbot is not returning expected hostname as per guidelines
- Get hostname from only its cname record
- Reverse DNS lookup NodeJS
- Why client_hostname is filled while log_hostname=off?
- failed to dial to (wss://<ip>/subf1/40234): 502 Bad Gateway > websocket: bad handshake
- GCE custom hostname reverse lookup in private DNS zones
- How to get another pod name from it's IP?
- How do you detect Googlebot using reverse DNS lookup in .NET Core?
- Apache: Dynamically set Documentroot inside Virtualhost Section based on reverse-DNS Notation
- Client host rejected: cannot find your reverse hostname
- find hostname from IP - reverse DNS - android
- .in-addr.arpa. not found: 3(NXDOMAIN)
- How to get correct Hostname from reverse DNS lookup using Python?
- Limit execution time of await dns reverse function js
Related Questions in POWERDNS
- 401 on PowerDNS metrics endpoint
- Where is the PowerDNS (pdns) service log file?
- RRSIG on primary DNS Server?
- How to delete A record(s) with specified IP by PowerDNS API?
- Unable to add new zone/domain in PowerDNS using API
- I want to use lua in pdns-recursor to log the responses/answers
- Log Refused DNS Queries in dnsdist using DNSTap
- Is there any method so that i can get the client public IP in dns query
- What is the better way to healthcheck powerdns?
- Timeout Issues inside Kubernetes Cluster Powerdns
- Create domain 'example.com' failed Powerdns API
- Building SQL Query To Remove PowerDNS Records
- Flux calculate rate per second using sample interval
- external-dns in multiple clusters don't update PowerDNS as expected
- Reduce nested json (PowerDNS stats)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
It seems, you are using PowerDNS Recursor. The standard way of doing this is via the lua extensions. Depending on the criteria, when you want to spoof, you probably want to use one of the query interceptor function specified in the lua scripting documentation
You may also be interested in the spoofing capabilities mentioned in the dnsdist Packet Policies documentation. For example:
addAction(domain, SpoofAction({IP[,…]}))