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

    Split DNS inconsistencies

    Scheduled Pinned Locked Moved DHCP and DNS
    22 Posts 3 Posters 3.6k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      @zandr:

      perhaps by having dnsmasq use a separate file rather than /etc/hosts, that would be a win for me.

      Well just use

      "host-record=www.fudzilla.com,192.168.55.1"

      See the post from above.

      So here is my /etc/host

      [2.1.1-PRERELEASE][admin@pfsense.local.lan]/root(2): cat /etc/hosts
      127.0.0.1      localhost localhost.local.lan
      192.168.1.253  pfsense.local.lan pfsense
      192.168.1.31    raspberrypi.local.lan raspberrypi
      192.168.1.99    popcorn.local.lan popcorn
      192.168.1.100  i5-w7.local.lan i5-w7

      snipped

      dhcpleases automatically entered

      192.168.1.215  w81.local.lan w81              # dynamic entry from dhcpd.leases
      192.168.1.214  2012r2.local.lan 2012r2        # dynamic entry from dhcpd.leases
      192.168.2.217  G500.local.lan G500            # dynamic entry from dhcpd.leases
      192.168.2.213  android-497a3c8329e0a007.local.lan android-497a3c8329e0a007            # dynamic entry from dhcpd.leases
      192.168.2.211  Chromecast.local.lan Chromecast        # dynamic entry from dhcpd.leases
      192.168.3.100  W7X64-VM.local.lan W7X64-VM            # dynamic entry from dhcpd.leases

      etc…

      There is no www.fudzilla.com in there..  But if I put in the above, see attached -- so pfsense using outside dns, not itself resolves the public IP for that host, but boxes on my lan using pfsense for dns resolve the record I put in.  So as long as you don't have it entered via dhcp record your fine.

      dnsmasgrecord.png
      dnsmasgrecord.png_thumb

      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.8, 24.11

      1 Reply Last reply Reply Quote 0
      • Z
        zandr
        last edited by

        host-record is exactly what I was after. I missed that the first time I read bryan.paradis's post, thanks johnpoz for pointing it out again.

        This is great, it lets me ditch unbound (which hasn't been the most stable in production)

        Thanks again,
        -Zandr

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