dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
uniqs
946
share rss forum feed

parachuter2b

join:2008-11-06

which DNS to use in server.ovpn when running dd-wrt?

Hi there,

I am trying to setup OpenVPN server on a PC connected to a DD-WRT router:
OS: Windows Seven Ultimate
DD-wrt: v24-sp2
router: Asus RT-N16

Editing the Server.ovpn config file:
"push "dhcp-option DNS X.X.X.X" #### CHANGE. Replace the Xs with the IP address of the DNS for your home network (usually your ISP's DNS)."

I noticed that I have a local DNS address rather than my ISP's (Rogers) DNS. When I run "ipconfig /all", I get:

Ethernet adapter Local Area Connection:
..
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-18-C2-0B-CC-00-22-15-86-08-1A
DNS Servers . . . . . . . . . . . : 192.168.1.1
..
Ethernet adapter Hamachi:
..
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-18-C2-0B-CC-00-22-15-86-08-1A
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1

I've done quite a bit of research on the net, but haven't found much.
Should I use the local address I got from ipconfig (192.168.1.1) as the DNS in the server config file?

Please help!

Thanks a lot for your time!!



eibgrad

join:2010-03-15

1 edit

1 recommendation

Depends on your intentions. If clients are only expected to use the openvpn server as their internet gateway, then a local DNS doesn't serve much purpose, and in fact, you may not want remote users to know/access local resources (other than the gateway). So use a public DNS in that case (e.g., Google's 8.8.8.8). OTOH, if you expect those remote users to roam your local network and easily access resources by name (web server, ftp server, nas, etc.), then obviously a local DNS server is useful. And like most local DNS servers, it should forward any requests it can't handle to the local ISP's DNS servers.


parachuter2b

join:2008-11-06

gotcha! thank you!!