Navigation

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

    Is it possible to intercept cname resolution in DNS resolver.

    DHCP and DNS
    dns redirect cname
    2
    2
    202
    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

      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
      • johnpoz
        johnpoz LAYER 8 Global Moderator last edited by johnpoz

        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 23.01 | Lab VMs CE 2.6, 2.7

        1 Reply Last reply Reply Quote 0
        • First post
          Last post