Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Resolve a hostname by BIG-IP it's self, when to use "HTTP exlicit proxy"

Hi Guys.

I'm looking for a way to resolve the hostname by not using "DNS resolvers", when to use "HTTP explict proxy".

My goal is to resolve the name of the internal web server by BIG-IP it's self when bigip is as a proxy. Trying to modify /etc/hosts as a test and access to the virtual server, which is configured as Proxy, from my client but couldn't resolve the name as below.

/etc/hosts

    # cat hosts
    #
    # THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!!!
    #
    # Use the tmsh shell utility to make changes to the system configuration.
    # For more information, see tmsh -a help sys global-settings.
    .
    <snip>
    .

    172.18.20.80      www.sample.xyz
    `</pre>

The result of typing curl to access to my proxy virtual server.

    > curl -x 192.168.19.101:3235 -L http://www.sample.xyz
    DNS lookup failed

Does anyone have any ideas? Even though I could use irule, would it be a bit difficult?

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Not 100% if this is going to help but take a look at this great codeshare Dynamic FQDN Node DNS Resolution based on URI with Route Domains and Caching iRule

1
Comments on this Answer
Comment made 3 days ago by Hello world 161

Thank you AMG for introducing cool iRule.

I looked at the iRule that AMG suggests, it was a bit deferent I had expected.
But It was valuable information.
BTW, I found another solution by using DNS express. My bigip have to be provisioned BIG-DNS. DNS express could directly resolve hostnames inquired from "DNS resolver" besides the virtual server. I feel like it goes well.

Thanks.

0