THE FORUM IS IN READ-ONLY MODE
This forum is in read-only mode. The new forum is live at https://discourse.openbullet.dev and registrations are open!
How to use local DNS to resolve a host name
If you want to pass an IP address to a proxy instead of the domain name you can resolve it locally through a simple IronPython script like this (where you put your own URL inside the
SET VAR "URL" "http://example.com/subfolder/script.php?abc=123" PARSE "<URL>" REGEX "^(?:https?:\/\/)?(?:[^@\/\n][email protected])?(?:www\.)?([^:\/?\n]+)" "" -> VAR "DOMAIN" BEGIN SCRIPT IronPython from System.Net import Dns entry = Dns.GetHostEntry(DOMAIN) ip = entry.AddressList END SCRIPT -> VARS "ip" PRINT <ip>