> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/generic/solution/host-unable-to-access-repository-as-static-ip-entry-present-in.md).

# Host Unable to Access Repository as Static IP Entry Present in Hosts File for the Domain

## Problem

Host blocked from accessing the S3 bucket for [*https://s3-us-west-1.amazonaws.com/platform9-neutron/el7/*](https://s3-us-west-1.amazonaws.com/platform9-neutron/el7/) to download the required packages.

## Environment

* Platform9 Managed OpenStack - All Versions
* Platform9 Managed Kubernetes - All Versions

## Cause

1. IP address 54.231.237.25 mapped to the Domain Name [s3-us-west-1.amazonaws.com](http://s3-us-west-1.amazonaws.com/) on the host was not reachable.

{% tabs %}
{% tab title="None" %}

```none
[pf9@host ~]$ nmap -v -Pn s3-us-west-1.amazonaws.com
Starting Nmap 6.40 ( http://nmap.org ) at 2020-05-13 14:02 PDT
Initiating Connect Scan at 14:02
Scanning s3-us-west-1.amazonaws.com (54.231.237.25) [1000 ports]
Connect Scan Timing: About 15.50% done; ETC: 14:05 (0:02:49 remaining)
Connect Scan Timing: About 30.50% done; ETC: 14:05 (0:02:19 remaining)
Connect Scan Timing: About 45.50% done; ETC: 14:05 (0:01:49 remaining)
Connect Scan Timing: About 60.50% done; ETC: 14:05 (0:01:19 remaining)
Connect Scan Timing: About 75.50% done; ETC: 14:05 (0:00:49 remaining)
Completed Connect Scan at 14:05, 201.30s elapsed (1000 total ports)
Nmap scan report for s3-us-west-1.amazonaws.com (54.231.237.25)
Host is up.
All 1000 scanned ports on s3-us-west-1.amazonaws.com (54.231.237.25) are filtered
Read data files from: /usr/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 201.36 seconds
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="None" %}

```none
[pf9@host ~]$ nc -zv s3-us-west-1.amazonaws.com 80
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connection timed out.
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="None" %}

```none
[pf9@host ~]$ nc -zv 54.231.237.25 80
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connection timed out.
```

{% endtab %}
{% endtabs %}

## Resolution

The */etc/hosts* file on the host had set endpoints with static IP addresses which conflicted with DNS resolution. On removal of the entries, the host was able to successfully download the packages.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://platform9.com/kb/generic/solution/host-unable-to-access-repository-as-static-ip-entry-present-in.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
