Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify IP address to connect to? #189

Open
RoganDawes opened this issue Jul 11, 2023 · 1 comment
Open

Specify IP address to connect to? #189

RoganDawes opened this issue Jul 11, 2023 · 1 comment

Comments

@RoganDawes
Copy link

Is your feature request related to a problem? Please describe.
Sometimes you need to get screenshots of vhosts on a particular IP. But chrome will just do a DNS resolve of the provided hostname, and pick an address in the response to connect to. This may not always be the IP address that you are interested in!

Describe the solution you'd like
It would be great to be able to specify the IP address that chrome should connect to, for the various URL's provided.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
This can be worked around by creating entries in /etc/hosts to return only the IP address that you want for each hostname, but that gets a little bit complicated when running in a Docker container. Since there is a reasonable workaround, this is obviously a low priority suggestion.

@leonjza
Copy link
Member

leonjza commented Jul 11, 2023

Could maybe implement using this approach for host-resolver-rules. chromedp/chromedp#985 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants