Gopalkrishna Mudaliar
2016-10-28 22:58:25 UTC
Hello All           I am trying to return the IP address of domains (DNS response) depending on a specific pattern that computes (decide ) IP to be returned.
EgÂ
        http://my100.machine1.com       return 192.168.1.100        http://my101.machine1.com    return 192.168.1.101     http://myhost2.machine1.com   return 192.168.1.100Â
         The logic to decide the IP is something internal.
        Could any help me where can i make this change. I have been trying to understand the code but didn't get the point to add my logic.        I looked at files.  rfc1035.c, forward.c, cache.c.
       Would really appreciate if any one could help me understand the flow or any pointers.
ThanksKrishna.
Â
EgÂ
        http://my100.machine1.com       return 192.168.1.100        http://my101.machine1.com    return 192.168.1.101     http://myhost2.machine1.com   return 192.168.1.100Â
         The logic to decide the IP is something internal.
        Could any help me where can i make this change. I have been trying to understand the code but didn't get the point to add my logic.        I looked at files.  rfc1035.c, forward.c, cache.c.
       Would really appreciate if any one could help me understand the flow or any pointers.
ThanksKrishna.
Â