Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

DNS resolve - hosts file

petras123_10972
Nimbostratus
Nimbostratus
Hi All,

 

pleas help me.

 

I'm traying configure APM portal access, but I dont have any DNS server in DMZ. So I added records into hosts file (by GUI), but the APM doesn't work and in the session log is message "host.name.x.y" cannot be resolved. But ping from CLI works properly.

 

Do you have any idea please. THX
10 REPLIES 10

hooleylist
Cirrostratus
Cirrostratus
Hi Petras,

 

 

If you don't get an answer here, I suggest opening a case with F5 Support.

 

 

Aaron

Koni_51721
Cirrus
Cirrus

Hello

 

I have exactly the same problem. Is there any solution?

 

Thanks

 

brad_11480
Nimbostratus
Nimbostratus

so this is hanging open.. i have the same problem. so is it that APM does not honor the host file and ONLY references DNS? Beginning to conclude that is the case (unfortunately). Very inconsistent with standard setups.

 

kunjan
Nimbostratus
Nimbostratus

Currently host file not supported.

One option may be to create a DNS virtual server locally, and use iRule to respond.

when DNS_REQUEST {

   set ttl 60
   set A "[DNS::question name]. $ttl [DNS::question class] [DNS::question type]"

   switch [string tolower [DNS::question name]] {
      "www1.arsenal.com" {
           DNS::answer insert  "$A 10.10.10.10"    
        }
       "www2.arsenal.com" {
           DNS::answer insert  "$A 20.20.20.20"   
        }
    }
    DNS::return
}

fantastic solution. thanks. that will work just fine for what we need!

Hi Kujan! could you explain\show the virtual server you have created? what do u mean "DNS virtual server locally" what is the type of the VS?

kunjan_118660
Cumulonimbus
Cumulonimbus

Currently host file not supported.

One option may be to create a DNS virtual server locally, and use iRule to respond.

when DNS_REQUEST {

   set ttl 60
   set A "[DNS::question name]. $ttl [DNS::question class] [DNS::question type]"

   switch [string tolower [DNS::question name]] {
      "www1.arsenal.com" {
           DNS::answer insert  "$A 10.10.10.10"    
        }
       "www2.arsenal.com" {
           DNS::answer insert  "$A 20.20.20.20"   
        }
    }
    DNS::return
}

fantastic solution. thanks. that will work just fine for what we need!

Hi Kujan! could you explain\show the virtual server you have created? what do u mean "DNS virtual server locally" what is the type of the VS?

theXfactor82_91
Nimbostratus
Nimbostratus

Anyone know if there is a fix for this other than using the above Virtual/irule combination?