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?
DNS Spoofing with PowerDNS
882 Views Asked by tectonicpie At
1
There are 1 best solutions below
Related Questions in DNS
- Configured TTL for A record(s) backing CNAME records
- Redirecting subdomain to directory on Azure
- SPF and DKIM records for Mandrill on DigitalOcean
- How to convert hostname to DNS name?
- Could someone bring Google OAuth2 for Cloud DNS via Rest to light?
- Spoof Captive Portal Screen on an iOS Device using DNS
- DNS_PROBE_FINISHED_NXDOMAIN on Google App Engine website
- How to check if a redirect leads to a different domain
- IP address to Domain Name? DNS?
- error CS1729: The type `ARSoft.Tools.Net.Dns.DnsServer' does not contain a constructor that takes `4' arguments
- Windows, Apache, Acrylic DNS, and wildcard subdomains
- How to configure DNS for microsoft odbc driver for oracle (in 64 bit arch.)
- How to use one time domain name in android?
- logstash dns filter miss
- Redirect website to another website if blocked in particular region
Related Questions in UDP
- UDP congestion control in NS2
- Packet drops in multicast when multiple instance of listner are running
- Netty loses udp packets at the beginning of the communication
- iOS "NSLocalizedDescription=Broken pipe" Error For UDP
- lua udp not working between computers
- Issues regarding multiplayer networking: input
- Implementing VOIP over udp, what is the approach to take when the player cannot cope up with received packet's speed
- Detecting incoming port for TFTP data?
- Is Winsock error 10054 (WSAECONNRESET) "normal" with UDP to/from localhost?
- PHP UDP socket memory leak
- What is the effect of the pseudo header in UDP?
- can we open an UDP conection in javascript
- UDP sending and receiving lists
- using Visual Basic 2013 and simple tcp client/server to implement lan game
- Manually send to iperf via UDP socket? (C++)
Related Questions in SPOOFING
- how to spoof location so google autocomplete API will provide local results, ideally with R
- DoS attack from google ip range
- How to make my PHP client be the only one that can get data from my PHP server
- arpspoof from LAN to WAN
- DNS Spoofing with PowerDNS
- Spoofing a game controller
- Is authenticating a TCP connection by source IP safe?
- Programmable usb host to host controller
- Where I can find the DNSSEC values at Google Cloud DNS?
- Ettercap : Is it possible to use redirect all HTTP website with DNS Spoof?
- Can someone spoof a websocket connection?
- Postfix spf - delivers spoofing emails. Not fail
- omnet++ INET : generate simple ARP spoof simulation
- How do I spoof an HTTP request to test a .NET Web Service
- Securing potential spoofing of Google OpenID details to requesting site
Related Questions in REVERSE-DNS
- How to cache "SERVFAIL" with bind?
- Customize Docker reverse DNS
- Reverse DNS not working , not found: 3(NXDOMAIN)
- differences between hostname and fully qualified domain name(FQDN)
- DNS Spoofing with PowerDNS
- Reverse DNS and SMTP
- Approaches to scan and fetch all DNS entries
- DNS Reverse Lookup with Asio
- Verified Bingbot is not returning expected hostname as per guidelines
- Limit execution time of await dns reverse function js
- How to get correct Hostname from reverse DNS lookup using Python?
- Why does Cloudflare returns NXDomain status even for valid gmail server ip address?
- How do I setup a reverse DNS entry in Plesk 9.2.2 frontent?
- Reverse dns lookup with scapy in python
- PHP email header for reverse DNS
Related Questions in POWERDNS
- How to setup failover server for PowerDNS Recursor with forward-zone option?
- DNS Spoofing with PowerDNS
- Powerdns Subdomain & Delegation
- Where is the PowerDNS (pdns) service log file?
- 401 on PowerDNS metrics endpoint
- Reduce nested json (PowerDNS stats)
- Flux calculate rate per second using sample interval
- external-dns in multiple clusters don't update PowerDNS as expected
- ISC-DHCP and PowerDNS for DDNS "Unable to add forward map <FQDN> to <IP>:unexpected error
- I want to use lua in pdns-recursor to log the responses/answers
- Unable to add new zone/domain in PowerDNS using API
- PowerDNS with MySQL native configuration question on master/slave architecture question
- //usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: error adding symbols: DSO missing from command line
- Log Refused DNS Queries in dnsdist using DNSTap
- DNS invalid records
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)
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?
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[,…]}))