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

    DNS Server Return/Lookup when trapped

    Scheduled Pinned Locked Moved DHCP and DNS
    1 Posts 1 Posters 112 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.
    • 4
      4o4rh
      last edited by

      i am using DHCP which sets the DNS server as pfsense, for some clients like andoid and windows (particularly with antivirus/firewalls) they set their own DNS overrides. e.g. comodo and avast

      I created a NAT Rule;

      Interface: LAN
      Protocol: TCP/UDP
      Source: LAN Net
      Src Port: *
      Dest: !pfsense
      Dest Port: 53
      NAT IP: LAN Net
      NAT Port: 53

      I block 53 from the WAN/VPNs and the rule works i.e. all PCs can resolve even with DNS overrides.

      Only one small thing i notice.
      When using nslookup to either resolve the host or the IP, the server is returned as unknown
      e.g.
      nslookup google.com
      Server: Unknown
      Address: 156.154.70.22
      Non-authoritative Answer
      Name: google.com
      Address: 172.217.19.206

      If the DNS is set to pfsense, the server name and address will be pfsense and the address of pfsense

      Am i able to return the DNS server name via a rule (even if trapped) or should i just ignore?

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