• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Assigning DNS Suffix via DHCP and OpenVPN

Scheduled Pinned Locked Moved DHCP and DNS
5 Posts 3 Posters 54.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    tristano
    last edited by Aug 30, 2006, 7:22 PM Aug 24, 2006, 7:53 PM

    Is there any way to configure the DHCP Server to assign a DNS search path to clients? I cannot find this or a way to insert custom options. The domain of pfSense can be assigned, so I thought there might be some way to pass that along to clients.

    Tristan Olive

    1 Reply Last reply Reply Quote 0
    • M
      MrMoo
      last edited by Aug 25, 2006, 3:46 AM

      Out of the plethora of standard DHCP options this surprisingly isn't one of them.

      1 Reply Last reply Reply Quote 0
      • T
        tristano
        last edited by Aug 25, 2006, 2:28 PM

        Oddly enough this may be another OpenVPN issue. I disabled the DHCP Server on the OpenVPN interface (an option that I'm not even sure should exist, as it is addressed somewhat redundantly in VPN configuration) and now I seem to be getting the domain of pfSense passed through DHCP on the LAN interface as the DNS search path.

        The search path isn't passed through to VPN clients either way, however.

        1 Reply Last reply Reply Quote 0
        • T
          tristano
          last edited by Aug 30, 2006, 7:17 PM

          While on the subject of OpenVPN, here are some tips for specifiying DHCP information to send to clients:

          The OpenVPN man page at http://openvpn.net/man.html details a number of options that can be set using the "Custom options" field in the pfSense OpenVPN Server configuration page.

          • push "dhcp-option DNS [ip-address]" - replace [ip-address] with the address of your DNS server. I needed this to resolve any names on the remote network.

          • push "dhcp-option DOMAIN [domain-name]" - replace [domain-name] with the desired DNS Search Path. This was required unless you want to type in the full address, with domain, in order to access remote machines.

          • push "route [network] [netmask] [gateway] [metric]" - specify the [network] that should be available to VPN clients, including, if necessary, the [netmask], [gateway], and [metric] information required.

          This was enough for my concept, maybe it will be of some use to someone else.  ;D

          1 Reply Last reply Reply Quote 0
          • T
            trendchiller
            last edited by May 23, 2007, 9:55 AM

            now these openvpn-options can be set up without using the custom parameters

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              [[user:consent.lead]]
              [[user:consent.not_received]]