Jump to content

[SOLVED] Setup script breaking /etc/resolv.con -- DNS doesn't work?


Recommended Posts

Maybe I'm doing something wrong on the Pineapple, but wp6.sh is replacing /etc/resolv.conf and pointing my dns at the wifi pineapple which fails to resolve any domain names.  A simple switch to google's DNS in /etc/resolv.conf allows my browser to be happy again.

 

Thoughts?  Is there a configuration issue on my end?  Why is wp6.sh replacing /etc/resolv.conf at all?

Edited by shadesoflight
Link to comment
Share on other sites

I added a "reset" option to wp6.sh:  https://gist.github.com/chadfurman/4b83132419315d05b8ccab5468caac45

This will fix the route table, bring down the pineapple connection, bring up your WAN connection, turn off IP forwarding, flush your IP tables (this also happens when you connect, go figure, maybe there should be a warning...), and fix your resolv.conf

Edit: if you still have trouble, manually edit /etc/resolv.conf and add in google's nameservers:

# Contents of /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

 

Edited by shadesoflight
Link to comment
Share on other sites

  • 7 months later...

Hi, I am in need of help when it comes to specifying the DNS the Pineapple should use. I did the above multiple times, as mentioned by other users, but at every reboot, the resolv.conf seems to revert back its default state. Any ideas as to why or how to fix it?

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.

Guest
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...