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

Is it possible to intercept cname resolution in DNS resolver.

Scheduled Pinned Locked Moved DHCP and DNS
dnsredirectcname
2 Posts 2 Posters 600 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.
  • E
    ebsense
    last edited by Jul 16, 2019, 5:07 PM

    I have a root of the domain overridden to a local IP, so pinging my.domain would return proxy server's IP, within a public DNS I have a wildcard setup to CNAME redirect *.my.domain to my.domain, but pinging something like app.my.domain will return a public IP of my.domain instead of domain override I've setup earlier.

    C:\Users\Gene>ping my.domain
    Pinging my.domain [10.0.0.210] ... ## private IP I've setup via Host Override

    C:\Users\Gene>ping app.my.domain
    Pinging my.domain [66.12.34.56] ... ## public IP, same as if I've not done anything

    Somehow pinging the domain directly vs pinging it via a CNAME redirect provides different results.

    I'm aware that I can setup local-zone: "my.domain" redirect, but prefer not to use this option as some 2nd level sub-domains I would like to leave with default routing such as remote.office.my.domain. A possible solution would be to allow me to setup exceptions to the redirect rule: Is there a way to setup office.my.domain to be processed normally despite redirecting a lower level my.domain?

    Thanks for the feedback, been playing around with this and searching for clues, but so far have found nothing.
    Gene

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by johnpoz Jul 16, 2019, 5:24 PM Jul 16, 2019, 5:22 PM

      If you want

      hostA.domain.tld to return local
      hostB.domain.tld to return public
      hostC.domain.tld to return local

      Then you would have to create host overrides for each specific fqdn that you want to return local.

      Or you can go the other way and do a redirect, and then just create records that point to your public IP for those fqdn.. Depends on how many you have on what side, etc.

      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
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received