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

Split DNS with Resolver

Scheduled Pinned Locked Moved DHCP and DNS
3 Posts 2 Posters 638 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.
  • A
    AndrewZ
    last edited by Jan 11, 2018, 5:55 PM

    I have multiple subnets like 192.168.1.0, 192.168.2.0, etc
    For NTP server I have a hostname assigned in DNS which points to 192.168.1.1
    What I want to do is to respond with the different IP depending on who is asking, i.e. for request from 192.168.2.X DNS should respond with 192.168.2.1 instead of 192.168.1.1
    Is that possible?

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Jan 11, 2018, 7:01 PM Jan 11, 2018, 6:58 PM

      What advantage is this?  Just create your firewall rules to allow your other vlans to get to ntp on 192.168.1.1

      But what your asking you can do with views on unbound… I had given example a while back... Have to dig it up... Give me a bit...

      edit:  Here you go..
      https://forum.pfsense.org/index.php?topic=126740.0

      Or you could do it by setting up host overrides with subdomains... so you have say

      ntp.domain.tld

      ntp.vlan.domain.tld

      ntp.othervlan.domain.tld

      And point those to whatever IP you want for NTP, and have your clients use the fqdn that for the vlan they are in, etc.    But the easy solution is just simple firewall rule for ntp to get to 192.168.1.1 on your different vlans..

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      1 Reply Last reply Reply Quote 0
      • A
        AndrewZ
        last edited by Jan 11, 2018, 7:09 PM

        Many thanks for that, johnpoz!
        Actually the rule was configured initially but with mistake. Once I figured that out this split dns idea came to my mind. In a mean time I just manually configured NTP server IP (from the same subnet) instead of the hostname for a few devices. Will do something nicer later on.
        Thanks again!

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received