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

    Problem hostname resolving on lan site over ovpn connection

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 936 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.
    • D
      dfk1976
      last edited by

      hi,

      i've succesfully configured an ovpn connection but have problems to resolve the hostname of the servers on the lan site:

      openvpn server:
      udp 1194
      tun
      tunnel network 10.0.8.0/24
      lan network 192.168.1.0/24
      dns servers 192.168.1.1

      lan server with static configured ip:
      hostname "fileserver"
      static ip 192.168.1.150/24
      dns server 192.168.1.1

      now it is not possible to ping the lan server with hostname:
      ping fileserver -> unkown host

      only after i've activated dns forwarder service in pfsense and added an entry in "host overrides" i could succesfully ping the hostname:
      Host         Domain IP                   Description
      fileserver mydomin  192.168.1.150   hostname fileserver
      ping fileserver -> response ok

      now my question is, what is the right way to configure pfsense that manual configured servers with static ip on the lan can also be forwarded over an ovpn connection by its hostname?

      i'm not sure if my solution is the absolute right configuration and would be happy if someone could clarify the issue more precisely how to do the things normally or have an alternative solution.

      thanks.

      daniel

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        You need some sort of working dns setup. Either on a separate system or using pfsense dns services

        1 Reply Last reply Reply Quote 0
        • D
          dfk1976
          last edited by

          thank you.

          first when configuring the lan server over dhcp its hostname appears correctly in the pfsense menu Status -> DHCP leases and you can ping the hostname correctly.

          only if i configure a static ip for the lan server network it is shown only in the menu Diagnostic -> ARP Table but not under the DHCP leases.

          so what to do to setup the dns service that it also can resolve the hostnames from the connected servers showed in the ARP Tables? where and how to configure the dns service for lan in pfsense, like you said?

          at the moment my above mentioned solution works fine but if there is a way to automatically resolve manually configured lan networks please give me a further tip.

          daniel

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.