Jump to content

Running a fake DNS server?


Recommended Posts

I set up my own web-server with an IPtables captive portal. Works fine if I'm connected to the internet, otherwise the clients don't get redirected because they can't reach the DNS server. So I was wondering if it would be plausible to run a simple DNS server on my own machine... It would also serve as a captive portal so it should answer the same IP to every request.

1) How is it plausible to set up my own DNS server?

2) Will the client who's connected to the AP try to reach my server on AP's port 53 ?

Thanks in advance.

Link to comment
Share on other sites

1. Yes.

2. If your dhcp client is setup properly, yes.


3. If you really want to get into this whole pentesting thing, you really need to know the basics of networking, server, and desktop operating systems.  Even if you're not getting into pentesting, you'll get a lot more use out of the pineapple, and really, anything hak5 sells.

Link to comment
Share on other sites

I'm still not sure if I can figure this out ... But I'll give it a try.It's a start (I'm using a regular laptop running Mint, not pineapple - probably not a problem?)

Thanks for your help!


It did work. Turns out I just had to add a line to /etc/dnsmasq.conf as you suggested. I have no idea about DNS configuration but it was easier than I thought. I'm sure dnsmaq.conf has some more options to play with !

Thanks again.



Edited by fFoska
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...