How to selectively apply a policy for SG to do IPv4 DNS query only?
search cancel

How to selectively apply a policy for SG to do IPv4 DNS query only?

book

Article ID: 166489

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

In SGOS 5.5.1.1, the default behaviour is that the SG will do an AAAA record query (IPv6) after the normal A record query (IPv4), however some websites will encounter slowness issue if the website NS (name server) does not support IPv6 or could not give a respond when received an IPv6 or AAAA record query. Below are the steps on how to apply the policy or workaround:

Go to Configuration > Policy > Policy Files > Policy Files tab > Install Local File from: Text Editor > Click on Install > Copy and paste the following policy:
 
<Forward>
condition=IPv4_DNS_Servers server_url.dns_lookup(IPv4-Only)
 
define condition IPv4_DNS_Servers
    server_url.domain=//revs.nsw.gov.au/
    server_url.domain=//abc.com/
end
 
 

Note : This is an example only, replace "revs.nsw.gov.au" and "abc.com" as needed