Tweaking the DNS response

Thread Tools Search this Thread
Special Forums IP Networking Tweaking the DNS response
# 1  
Old 08-26-2013
Tweaking the DNS response

Hi All,

The following is the scenario.

I open the browser and request a web page. The DNS query is sent to the DNS server of my company and replies my GNU/Linux machine with a DNS response. I have "insmod"ed a kernel module that picks up the DNS response and over rides the "Addr" field of the "Answers" Section of the DNS response packet with a different IP address. However, after overriding the "Addr" field, my machine sends a ICMP(Host unreachable, administratively probihited) msg to the DNS server.
Can some one throw light on what is happening.

I am using netfilter frame work in my module and tweaking the DNS response in the NF_INET_PRE_ROUTING hook.

I m attaching the wireshark pcap. - IP of my machine. - DNS server IP.

Thank You.
# 2  
Old 08-26-2013

Not sure what your attachment is, but I know many WILL NOT open an attachment to look at a problem.
1) Lots of extra steps
2) Security issues
This User Gave Thanks to joeyg For This Post:
# 3  
Old 08-27-2013
Hi joeyg,

Can u please elaborate your points?

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

DNS Response Issue

Hi, I have a Windows based Domain ( like: On all my Linux servers (/etc/resolv.conf) have a following DNS servers entries: nameserver nameserver But when i ping my Domain (, it... (5 Replies)
Discussion started by: refra
5 Replies

2. Shell Programming and Scripting

Perl: Regular expression tweaking?

Hello! I'm trying to tweak my regular expression to take care of this tedious little "blank space" problem. I don't know what's causing the " : 2 times, lines 1, 5," to be printed. Here is what the input looks like: Here's what the output is... (6 Replies)
Discussion started by: D2K
6 Replies

3. Shell Programming and Scripting

Tweaking the output of diff

hello everyone, I am trying to compare two files and have the result in a new files. When I used diff I am getting the header, '<' and '>' in my result which I don't want to have it in my output file. :wall: opt/sam/input: diff file1.txt file2.txt 1,20d0 < 16,ZA, < ZJ,08, < Z7,03, Any... (1 Reply)
Discussion started by: siteregsam
1 Replies

4. Red Hat

DHCP & DNS - Clients get IP but don't register in DNS

I am trying to setup a CentOS 6.2 server that will be doing 3 things DHCP, DNS & Samba for a very small office (2 users). The idea being this will replace a very old Win2k server. The users are all windows based clients so only the server will be Linux based. I've installed CentOS 6.2 with... (4 Replies)
Discussion started by: FireBIade
4 Replies

5. IP Networking

Network Tweaking - Database Query Across Internet

Hi We run a script that queries a database via the internet and we need the fast possible connections to the database server. I have centos server which sends the requests to the database across the internet . it sends upto 800 queries per milliseconds however this using the default... (4 Replies)
Discussion started by: um08
4 Replies

6. UNIX for Dummies Questions & Answers

Changing email header information by tweaking sendmail

How can i tweak sendmail configuration files so that the "Received:" field is removed from email header information? Or else can i change Received: (from enswitch@localhost) in email header to something likeReceived: (from xyz@localhost)? ---------- Post updated at 09:57 PM ---------- Previous... (2 Replies)
Discussion started by: proactiveaditya
2 Replies

7. Shell Programming and Scripting

Question on tweaking the PATH variable to allow the world to run my executable script

All, I am pretty new to Unix and still in the learning curve :) I have a simple requirement for which I did not get an answer yet (Atleast I do not know how to keyword the search for my requirement!!!). I have an executable script my.script1 in a folder /data/misc/scripts/dev, which when... (5 Replies)
Discussion started by: bharath.gct
5 Replies

8. Shell Programming and Scripting

New help tweaking awk...

Guys, My awk is not very good and I'm kind of stuck. I have a file like so: 1,a,a,ab1234,ab1234,e,f 2,a,b,cd1234,ef5678,e,f 3,a,a,cd3456,gh5678,g,h 4,a,b,ef5678,ef1234,g,h 5,a,a,cd7890,ab5678,e,f 6.a,b,cd7890,jk1234,il I don't care about any other columns other than col4 and col5. ... (6 Replies)
Discussion started by: giannicello
6 Replies

9. IP Networking

Apache mod_proxy +DNS slow response problem

My company has a private network, including a Apache web server (Linux) and some WinXP machines. The web server had been configured to use mod_proxy to connect to window update site via another company proxy server. It works for few years. Recently, some parties had setup a DNS server on the... (2 Replies)
Discussion started by: donaldfung
2 Replies
Login or Register to Ask a Question