DNS problems, please help!

8 posts / 0 new
Last post
beldar
beldar's picture
DNS problems, please help!

Hi all,

I recently got a Netgear Nighthawk X4S R7800 and I immediately installed Voxel custom firmware. I customised the VPN following the guide from this forum, and everything worked great, except the DNS change.

I wanted to change the DNS entries for the CloudFlare ones, I first did it on the GUI, but everytime I tried changing them I lost internet connectivity.

I then gained SSH access and just modified /etc/resolv.conf with the nameservers I wanted, and that worked great! Internet worked, and the GUI showed the new DNS entries as well.

The problem is that /etc/resolv.conf gets overwritten at some point to be my ISP automatically.

I've tried to remove write permissions on the file, but it gets overwritten anyway.

Normally I would make the file immutable with chattr +i but that command is not available on the R7800.

Can anyone think of a way to prottect that file so it doesn't get overwritten, or any other way to set the DNS that is not the GUI?

Thanks!

 

 

 

 

e38BimmerFN
e38BimmerFN's picture
You should be able to input

You should be able to input DNS into the UI. Yes you will loose internet and after you apply and reboot both the router and your PC, internet should be gained.

Whats the Mfr and model# of your ISP modem?

I use 1.1.1.1 and 9.9.9.9 for DNS now days...

beldar
beldar's picture
Hi there, I did apply, test,

Hi there, I did apply, test, reboot, several times. But I didn't get internet back on any try :(

beldar
beldar's picture
My ISP modem is a BT Smart

My ISP modem is a BT Smart Hub (BT HUB 6A)

Voxel
Voxel's picture
DNS nameservers in resolv

DNS nameservers in resolv.conf are generated /etc/init.d/net-wan script. See the function set_dns() in this script.

 

But if you are using VPN I'd suggest to use dnscrypt-proxy. See the same README. It allows to keep your privacy avoiding dnsleaks. Works with VPN and w/o VPN connection.

Voxel.

e38BimmerFN
e38BimmerFN's picture
is the ISP modem in router

is the ISP modem in router mode or modem only mode? Modem only mode is recommended if your using an external router like the R7800.

beldar
beldar's picture
Hi all,

Hi all,

I solved it and I thought i post the solution for future reference.

 

The solution was going to my modem and setting the router into the DMZ, then setting the DNS again on the Netgear, reboot, and it worked!

 

Thank you all for your help!

e38BimmerFN
e38BimmerFN's picture
DMZ works to. Enjoy.

DMZ works to. Enjoy.