FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
1,354 views 4 comments
by
Can't seem to have the Teltonika's dnsmasq use the DNS server from the openvpn connection:

/tmp/resolv.conf.auto only contains the nameservers from the WAN and Mobile interfaces.

i've run the following commands via SSH:
nslookup <remotehostname> <remotedns>: works correctly
nslookup <remotehostname> 127.0.0.1: does't work
 

Firmware version is RUTX_R_00.02.01.1

1 Answer

0 votes
by anonymous

Hello, 

Regarding to the issue your having based on what i understand you want to use the DNS IP address of the OpenVPN network?  You want to assign it on the DHCP? So every device connected to it will use the OpenVPN DNS settings? You can do it on the Network > LAN > DHCP Server > Advance Settings > DHCP Options then fill in 6, 192.168.1.1 192.168.1.2  -> 6 is the dhcp option and 192.168.1.1 & 192.168.1.2 should be the ip of your OpenVPN DNS. 

If this is not the issue you want to solve could you provide more detailed information on what are you trying to do?? 

Hope it helps 

Thank you and stay safe

Regards,
Jerome

by
That could be an option: bypass the internal dnsmasq daemon entirely, and would be my backup option. But I'd rather have it use the VPN's DNS like it would use the WAN or Mobile DNS server when it's connected.

If I push the VPN DNS to the clients, and the VPN gets interrupted, clients can't resolve anything anymore, not just the VPN se, or slower if another server is pushed as alternative DNS.

Also, the VPN pushes the DNS IP from the serverside configuration, I'd love to not have to hard-code that DNS IP on the Teltonikas if it were somehow possible.
by anonymous

Hello,

I see, could you try this one is from RUT955 OpenVPN proxy i think this may help you to get some idea :) 
https://wiki.teltonika-networks.com/view/OpenVPN_configuration_examples#OpenVPN_Proxy

Hope it helps

Stay Safe

Kind Regards,
Jerome

 

by
Hi,

Did you find a solution to this as I have exactly the same requirement. I want clients to use the mobile provider assigned DNS servers when the OpenVPN is down. But use the OpenVPN assigned DNS servers when the VPN is connected. Split DNS functionality would be great, but I don't think the RUT240 supports this.
by anonymous

Hello, 

Here is a bit of information so that the OpenVPN Server can push DNS IP address on it's connecting clients when the OpenVPN link is up.
 
Link: https://openvpn.net/community-resources/pushing-dhcp-options-to-clients/
Link: https://wiki.teltonika-networks.com/view/OpenVPN_configuration_examples#OpenVPN_Proxy

Hope it helps

Regards,
Jerome